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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c47d7283d9f3f5563726fc0383505117740ebad7
4
- data.tar.gz: 0747246d0d5a0a34ce2f819ed074222bd8b73799
3
+ metadata.gz: 082ac08e78952ce0cc61790ad47dc1ceb0ed00b0
4
+ data.tar.gz: 4dab7c337ec91f327db4a7ca5561b60db3ae162b
5
5
  SHA512:
6
- metadata.gz: d2e24c8c927a3ef8914502c9a7cd336ff876e8fb2b3261054f5be159a40b8f8812701933b155d510f9d8eb3a5e634d5709a190fc1197062b228b9fd321f9284b
7
- data.tar.gz: c7427e2cdd4e91e002c56a19fbcbc87f1166f0d7bb5aa6fef6351229c869bf0640a1850ba417c083089bb63813c3cffbe5a57250fecb512deeab6c817a244d25
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: 2c6e4fe957efa63cdd7edc61e3fd166d5e8409f2
3
+ revision: c2da2f5b26f976510965adda01e4893d1eae7f7d
4
4
  branch: master
5
5
  specs:
6
- thor (0.18.1)
6
+ thor (0.19.1)
7
7
 
8
8
  GIT
9
9
  remote: git@github.com:niwo/cloudstack_client.git
10
- revision: 5547d67014571b3818e0a695604207a10c7d6cf4
10
+ revision: 74c951631d0769265248c78e14c49095f82fe6c2
11
11
  branch: master
12
12
  specs:
13
- cloudstack_client (0.4.4)
13
+ cloudstack_client (0.5.0)
14
14
 
15
15
  PATH
16
16
  remote: .
17
17
  specs:
18
- cloudstack-cli (0.7.4)
19
- cloudstack_client (~> 0.4, >= 0.4.4)
20
- thor (~> 0.18)
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.1.1)
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.1)
36
+ rake (~> 10.3)
37
37
  rdoc (~> 4.1)
38
38
  thor!
data/Rakefile CHANGED
@@ -1,3 +1,2 @@
1
1
  require 'bundler'
2
-
3
2
  Bundler::GemHelper.install_tasks
@@ -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.1')
25
+ gem.add_development_dependency('rake', '~> 10.3')
26
26
 
27
- gem.add_dependency('thor', '~> 0.18')
28
- gem.add_dependency('cloudstack_client', '~> 0.4', '>= 0.4.4')
27
+ gem.add_dependency('thor', '~> 0.19')
28
+ gem.add_dependency('cloudstack_client', '~> 0.5', '>= 0.5.0')
29
29
  end
@@ -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
@@ -29,4 +29,10 @@ class Iso < CloudstackCli::Base
29
29
  end
30
30
  end
31
31
 
32
+ desc 'detach <vm-id>', "detaches any ISO file (if any) currently attached to a virtual machine"
33
+ def detach(vm_id)
34
+ client.detach_iso(vm_id, {async: true})
35
+ say "OK", :green
36
+ end
37
+
32
38
  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 = [["Name", "Displaytext", "Account/Project", "Zone", "Domain", "State", "Type"]]
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]
@@ -11,6 +11,7 @@ class Server < CloudstackCli::Base
11
11
  if options[:project]
12
12
  project_id = find_project['id']
13
13
  options[:project_id] = project_id
14
+ options[:project] = nil
14
15
  end
15
16
  servers = client.list_servers(options)
16
17
  if servers.size < 1
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "0.8.3"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.3
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-02-25 00:00:00.000000000 Z
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.1'
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.1'
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.18'
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.18'
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.4'
62
- - - '>='
61
+ version: '0.5'
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: 0.4.4
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.4'
72
- - - '>='
71
+ version: '0.5'
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 0.4.4
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: []