knife-clodo 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/knife-clodo.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'knife-clodo'
3
- spec.version = '0.1.4'
3
+ spec.version = '0.1.5'
4
4
  spec.summary = 'Clodo.Ru knife plugin'
5
5
  spec.add_dependency('fog', '>= 0.11.0')
6
6
  spec.description = <<-EOF
@@ -0,0 +1,29 @@
1
+ require 'chef/knife/clodo_base'
2
+
3
+ class Chef
4
+ class Knife
5
+ class ClodoImageList < Knife
6
+
7
+ include Knife::ClodoBase
8
+
9
+ banner "knife clodo image list (options)"
10
+
11
+ def run
12
+ $stdout.sync = true
13
+
14
+ image_list = [
15
+ ui.color('ID', :bold),
16
+ ui.color('Name', :bold),
17
+ ui.color('Type', :bold)
18
+ ]
19
+
20
+ connection.images.each do |image|
21
+ image_list << image.id.to_s
22
+ image_list << image.name
23
+ image_list << image.vps_type
24
+ end
25
+ puts ui.list(image_list, :columns_across, 3)
26
+ end
27
+ end
28
+ end
29
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-clodo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stepan G. Fedorov
@@ -47,6 +47,7 @@ files:
47
47
  - knife-clodo.gemspec
48
48
  - lib/chef/knife/bootstrap/debian6apt.erb
49
49
  - lib/chef/knife/clodo_base.rb
50
+ - lib/chef/knife/clodo_image_list.rb
50
51
  - lib/chef/knife/clodo_server_create.rb
51
52
  - lib/chef/knife/clodo_server_delete.rb
52
53
  - lib/chef/knife/clodo_server_list.rb