cloudstack-cli 0.10.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adac50881e28cc6e808bdb25e9fc7881a8f72fec
4
- data.tar.gz: e7c229d3a5ad75913c76bd1c81518a60a7e4bcf7
3
+ metadata.gz: 020e68d66725a769f446f4ad8625b6ce5a9fbce4
4
+ data.tar.gz: 3151242789129f836389b2e6c9cbac5e540200f0
5
5
  SHA512:
6
- metadata.gz: 2edcac53e7f5701db3ed9b486f85c1f821395ca964e066b873a68051a46ded25572a2ec0982545d84b9d6d4260e9ba5a5f9d5b19982232c975e8ab5b70971f70
7
- data.tar.gz: d005e7ff81be0f7b1c46bb6d4bb143bcd9935f4de050addb0a76df7accac1161bbfebcbe4ea4cc74e97210b54959c40d9dc541f9213cbb1a16b456b436ffa31b
6
+ metadata.gz: 4f173cb1a068bb3792bcfbc01287b394184ae285b500b78503513285cceb0621790da8ae5ffdf7dbce3fc51524b07f51801ef60802cda159fc0ab75d7234214f
7
+ data.tar.gz: ffdcc3ca9a46f49ef73149917938d8ac3ef9f59d2b19cfa584b0ff35b97c1fb6c5591d1c5a9cd197da518184b694cff2b681c15ba6ae81e1507accdb0fd2b63f
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'cloudstack_client', git: 'git@github.com:niwo/cloudstack_client.git', branch: 'master'
4
+ gem 'thor', git: 'git@github.com:erikhuda/thor.git', branch: 'master'
5
+
3
6
  # Specify your gem's dependencies in cloudstack-cli.gemspec
4
7
  gemspec
5
-
6
- gem 'cloudstack_client', git: 'git@github.com:niwo/cloudstack_client.git', branch: 'master'
7
- gem 'thor', git: 'git@github.com:erikhuda/thor.git', branch: 'master'
data/Gemfile.lock CHANGED
@@ -1,22 +1,22 @@
1
1
  GIT
2
2
  remote: git@github.com:erikhuda/thor.git
3
- revision: 942bbfec86d00a925938d6f47b8fc9b6b18a7576
3
+ revision: 81dadf41b1d0422d1be1a7b2655603b47e8ff46a
4
4
  branch: master
5
5
  specs:
6
6
  thor (0.19.1)
7
7
 
8
8
  GIT
9
9
  remote: git@github.com:niwo/cloudstack_client.git
10
- revision: 03555aca3862ecd75b8a4228afb7da753d42dfeb
10
+ revision: 0a9144ea5bad49ef8c0227151caa4e1574589b2a
11
11
  branch: master
12
12
  specs:
13
- cloudstack_client (0.6.4)
13
+ cloudstack_client (0.7.1)
14
14
 
15
15
  PATH
16
16
  remote: .
17
17
  specs:
18
- cloudstack-cli (0.10.2)
19
- cloudstack_client (~> 0.6, >= 0.6.4)
18
+ cloudstack-cli (0.11.0)
19
+ cloudstack_client (~> 0.7, >= 0.7.1)
20
20
  thor (~> 0.19)
21
21
 
22
22
  GEM
@@ -24,7 +24,7 @@ GEM
24
24
  specs:
25
25
  json (1.8.1)
26
26
  rake (10.3.2)
27
- rdoc (4.1.1)
27
+ rdoc (4.1.2)
28
28
  json (~> 1.4)
29
29
 
30
30
  PLATFORMS
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
 
24
24
  gem.add_development_dependency('rdoc', '~> 4.1')
25
25
  gem.add_development_dependency('rake', '~> 10.3')
26
-
26
+
27
27
  gem.add_dependency('thor', '~> 0.19')
28
- gem.add_dependency('cloudstack_client', '~> 0.6', '>= 0.6.4')
28
+ gem.add_dependency('cloudstack_client', '~> 0.7', '>= 0.7.1')
29
29
  end
@@ -2,7 +2,7 @@ module CloudstackCli
2
2
  class Cli < CloudstackCli::Base
3
3
  include Thor::Actions
4
4
 
5
- package_name "cloudstack-cli"
5
+ package_name "cloudstack-cli"
6
6
 
7
7
  class_option :config_file,
8
8
  default: File.join(Dir.home, '.cloudstack-cli.yml'),
@@ -48,21 +48,21 @@ module CloudstackCli
48
48
  params = {'command' => command}
49
49
  args.each do |arg|
50
50
  arg = arg.split('=')
51
- params[arg[0]] = arg[1]
51
+ params[arg[0]] = arg[1]
52
52
  end
53
53
  data = client.send_request(params)
54
54
  puts JSON.pretty_generate(data)
55
55
  end
56
56
 
57
57
  # require subcommands
58
- Dir[File.dirname(__FILE__) + '/commands/*.rb'].each do |command|
58
+ Dir[File.dirname(__FILE__) + '/commands/*.rb'].each do |command|
59
59
  require command
60
60
  end
61
61
 
62
62
  desc "environment SUBCOMMAND ...ARGS", "Manage cloudstack-cli environments"
63
63
  subcommand :environment, Environment
64
64
  map 'env' => :environment
65
-
65
+
66
66
  desc "zone SUBCOMMAND ...ARGS", "Manage zones"
67
67
  subcommand :zone, Zone
68
68
 
@@ -106,6 +106,9 @@ module CloudstackCli
106
106
  desc "router SUBCOMMAND ...ARGS", "Manage virtual routers"
107
107
  subcommand :router, Router
108
108
 
109
+ desc "system_vm SUBCOMMAND ...ARGS", "Manage system vms"
110
+ subcommand :system_vm, SystemVm
111
+
109
112
  desc "volume SUBCOMMAND ...ARGS", "Manage volumes"
110
113
  subcommand :volume, Volume
111
114
 
@@ -151,4 +154,4 @@ module CloudstackCli
151
154
  desc "configuration SUBCOMMAND ...ARGS", "List cloudstack configuration values"
152
155
  subcommand :configuration, Configuration
153
156
  end
154
- end
157
+ end
@@ -0,0 +1,21 @@
1
+ class SystemVm < CloudstackCli::Base
2
+
3
+ desc 'list', 'list system vms'
4
+ option :zone
5
+ def list
6
+ vms = client.list_system_vms(options)
7
+ if vms.size < 1
8
+ say "No system vms found."
9
+ else
10
+ table = [["Zone", "State", "Type", "Name"]]
11
+ vms.each do |vm|
12
+ table << [
13
+ vm['zonename'], vm['state'], vm['systemvmtype'], vm['name']
14
+ ]
15
+ end
16
+ print_table table
17
+ say "Total number of system vms: #{vms.size}"
18
+ end
19
+ end
20
+
21
+ end
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "0.10.2"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -58,20 +58,20 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.6'
61
+ version: '0.7'
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: 0.6.4
64
+ version: 0.7.1
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '0.6'
71
+ version: '0.7'
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 0.6.4
74
+ version: 0.7.1
75
75
  description: cloudstack-cli is a CloudStack API command line client written in Ruby.
76
76
  email:
77
77
  - nik.wolfgramm@gmail.com
@@ -119,6 +119,7 @@ files:
119
119
  - lib/cloudstack-cli/commands/ssh_key_pairs.rb
120
120
  - lib/cloudstack-cli/commands/stack.rb
121
121
  - lib/cloudstack-cli/commands/storage_pool.rb
122
+ - lib/cloudstack-cli/commands/system_vm.rb
122
123
  - lib/cloudstack-cli/commands/template.rb
123
124
  - lib/cloudstack-cli/commands/user.rb
124
125
  - lib/cloudstack-cli/commands/volume.rb