cloudstack-cli 0.8.3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/Rakefile +0 -1
- data/cloudstack-cli.gemspec +3 -3
- data/lib/cloudstack-cli/cli.rb +4 -1
- data/lib/cloudstack-cli/commands/configuration.rb +26 -0
- data/lib/cloudstack-cli/commands/iso.rb +6 -0
- data/lib/cloudstack-cli/commands/network.rb +3 -2
- data/lib/cloudstack-cli/commands/server.rb +1 -0
- data/lib/cloudstack-cli/version.rb +1 -1
- metadata +26 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 082ac08e78952ce0cc61790ad47dc1ceb0ed00b0
|
4
|
+
data.tar.gz: 4dab7c337ec91f327db4a7ca5561b60db3ae162b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc0ae575576ffded4e7b81d437bfb880f07bef8e305c4f9ef772a9cf4df3ea51183ab91e5d04998c682d2fc315c1a7a06ae8e68e8872e51fe70ddb5bf9457fb
|
7
|
+
data.tar.gz: 7377357a506304ebaaf2928a100fdd5c8f43015421da896f2271c243ca023e7d6335d648af66fce4ef68b02e796346b5f3f442ef45db4a4ce8ef95be25bc1e7d
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git@github.com:erikhuda/thor.git
|
3
|
-
revision:
|
3
|
+
revision: c2da2f5b26f976510965adda01e4893d1eae7f7d
|
4
4
|
branch: master
|
5
5
|
specs:
|
6
|
-
thor (0.
|
6
|
+
thor (0.19.1)
|
7
7
|
|
8
8
|
GIT
|
9
9
|
remote: git@github.com:niwo/cloudstack_client.git
|
10
|
-
revision:
|
10
|
+
revision: 74c951631d0769265248c78e14c49095f82fe6c2
|
11
11
|
branch: master
|
12
12
|
specs:
|
13
|
-
cloudstack_client (0.
|
13
|
+
cloudstack_client (0.5.0)
|
14
14
|
|
15
15
|
PATH
|
16
16
|
remote: .
|
17
17
|
specs:
|
18
|
-
cloudstack-cli (0.
|
19
|
-
cloudstack_client (~> 0.
|
20
|
-
thor (~> 0.
|
18
|
+
cloudstack-cli (0.9.0)
|
19
|
+
cloudstack_client (~> 0.5, >= 0.5.0)
|
20
|
+
thor (~> 0.19)
|
21
21
|
|
22
22
|
GEM
|
23
23
|
remote: https://rubygems.org/
|
24
24
|
specs:
|
25
25
|
json (1.8.1)
|
26
|
-
rake (10.
|
26
|
+
rake (10.3.1)
|
27
27
|
rdoc (4.1.1)
|
28
28
|
json (~> 1.4)
|
29
29
|
|
@@ -33,6 +33,6 @@ PLATFORMS
|
|
33
33
|
DEPENDENCIES
|
34
34
|
cloudstack-cli!
|
35
35
|
cloudstack_client!
|
36
|
-
rake (~> 10.
|
36
|
+
rake (~> 10.3)
|
37
37
|
rdoc (~> 4.1)
|
38
38
|
thor!
|
data/Rakefile
CHANGED
data/cloudstack-cli.gemspec
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.rdoc_options = %w[--line-numbers --inline-source]
|
23
23
|
|
24
24
|
gem.add_development_dependency('rdoc', '~> 4.1')
|
25
|
-
gem.add_development_dependency('rake', '~> 10.
|
25
|
+
gem.add_development_dependency('rake', '~> 10.3')
|
26
26
|
|
27
|
-
gem.add_dependency('thor', '~> 0.
|
28
|
-
gem.add_dependency('cloudstack_client', '~> 0.
|
27
|
+
gem.add_dependency('thor', '~> 0.19')
|
28
|
+
gem.add_dependency('cloudstack_client', '~> 0.5', '>= 0.5.0')
|
29
29
|
end
|
data/lib/cloudstack-cli/cli.rb
CHANGED
@@ -146,6 +146,9 @@ module CloudstackCli
|
|
146
146
|
subcommand :region, Region
|
147
147
|
|
148
148
|
desc "affinity_group SUBCOMMAND ...ARGS", "Manage affinity_groups"
|
149
|
-
subcommand :affinity_group, AffinityGroup
|
149
|
+
subcommand :affinity_group, AffinityGroup
|
150
|
+
|
151
|
+
desc "configuration SUBCOMMAND ...ARGS", "List cloudstack configuration values"
|
152
|
+
subcommand :configuration, Configuration
|
150
153
|
end
|
151
154
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Configuration < CloudstackCli::Base
|
2
|
+
|
3
|
+
desc 'list', 'list configurations'
|
4
|
+
option :name
|
5
|
+
option :category
|
6
|
+
option :keyword
|
7
|
+
def list
|
8
|
+
configs = client.list_configurations(options)
|
9
|
+
if configs.size < 1
|
10
|
+
say "No configuration found."
|
11
|
+
else
|
12
|
+
table = [%w(Name Scope Category Value)]
|
13
|
+
configs.each do |config|
|
14
|
+
table << [
|
15
|
+
config['name'],
|
16
|
+
config['scope'],
|
17
|
+
config['category'],
|
18
|
+
config['value']
|
19
|
+
]
|
20
|
+
end
|
21
|
+
print_table table
|
22
|
+
say "Total number of configurations: #{configs.size}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
@@ -34,7 +34,7 @@ class Network < CloudstackCli::Base
|
|
34
34
|
if networks.size < 1
|
35
35
|
puts "No networks found."
|
36
36
|
else
|
37
|
-
table = [
|
37
|
+
table = [%w(Name Displaytext Account/Project Zone Domain State Type Offering)]
|
38
38
|
table[0] << "ID" if options[:showid]
|
39
39
|
table[0] << "VLAN" if options[:showvlan]
|
40
40
|
networks.each do |network|
|
@@ -45,7 +45,8 @@ class Network < CloudstackCli::Base
|
|
45
45
|
network["zonename"],
|
46
46
|
network["domain"],
|
47
47
|
network["state"],
|
48
|
-
network["type"]
|
48
|
+
network["type"],
|
49
|
+
network["networkofferingname"]
|
49
50
|
]
|
50
51
|
table[-1] << network["id"] if options[:showid]
|
51
52
|
table[-1] << network["vlan"] if options[:showvlan]
|
metadata
CHANGED
@@ -1,77 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '10.
|
33
|
+
version: '10.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '10.
|
40
|
+
version: '10.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.19'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.19'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: cloudstack_client
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
62
|
-
- -
|
61
|
+
version: '0.5'
|
62
|
+
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.
|
64
|
+
version: 0.5.0
|
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.
|
72
|
-
- -
|
71
|
+
version: '0.5'
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
74
|
+
version: 0.5.0
|
75
75
|
description: cloudstack-cli is a CloudStack API command line client written in Ruby.
|
76
76
|
email:
|
77
77
|
- nik.wolfgramm@gmail.com
|
@@ -80,7 +80,7 @@ executables:
|
|
80
80
|
extensions: []
|
81
81
|
extra_rdoc_files: []
|
82
82
|
files:
|
83
|
-
- .gitignore
|
83
|
+
- ".gitignore"
|
84
84
|
- CHANGELOG.md
|
85
85
|
- Gemfile
|
86
86
|
- Gemfile.lock
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- lib/cloudstack-cli/commands/capacity.rb
|
99
99
|
- lib/cloudstack-cli/commands/cluster.rb
|
100
100
|
- lib/cloudstack-cli/commands/compute_offer.rb
|
101
|
+
- lib/cloudstack-cli/commands/configuration.rb
|
101
102
|
- lib/cloudstack-cli/commands/disk_offer.rb
|
102
103
|
- lib/cloudstack-cli/commands/domain.rb
|
103
104
|
- lib/cloudstack-cli/commands/environment.rb
|
@@ -131,18 +132,18 @@ licenses:
|
|
131
132
|
metadata: {}
|
132
133
|
post_install_message:
|
133
134
|
rdoc_options:
|
134
|
-
- --line-numbers
|
135
|
-
- --inline-source
|
135
|
+
- "--line-numbers"
|
136
|
+
- "--inline-source"
|
136
137
|
require_paths:
|
137
138
|
- lib
|
138
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
139
140
|
requirements:
|
140
|
-
- -
|
141
|
+
- - ">="
|
141
142
|
- !ruby/object:Gem::Version
|
142
143
|
version: 1.9.3
|
143
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
145
|
requirements:
|
145
|
-
- -
|
146
|
+
- - ">="
|
146
147
|
- !ruby/object:Gem::Version
|
147
148
|
version: '0'
|
148
149
|
requirements: []
|