vcli 0.2.2 → 0.2.3

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: b90b147af12414d980bebb4ed0d6ccb07e51c93a
4
- data.tar.gz: 8d193f0a852e877fa6300a60a8883d11fdf5d948
3
+ metadata.gz: 4cbd2409333acc1256d46fe566bbba8fb2e89a2b
4
+ data.tar.gz: 112f726bd85e0a4a07723ff46699cc8f29d2be2e
5
5
  SHA512:
6
- metadata.gz: 1fe3bacfc94b449cadee6196e4c4754dddcf5f9f086b42dd3009fc37f81b36bffc8352855b82bef5a9e21dd2dd549b868a6ddac6fdfde7ccf9658561ad52270a
7
- data.tar.gz: ad13b1cb806d042091505713c30caae9f12c53301126a329d2a39ff8e3af19f5e2713da0e2d1fc1564d33bc9bf2389855be97e934fdcce25784659091587b1ac
6
+ metadata.gz: 79a90c1e568f16406682ff9f96cfe49c2d09d07f8659a05460f8ed25d62163613c70c827637d42458a0144bdeb0519372e2918f81ca71072f06a2d234d5b01f5
7
+ data.tar.gz: d0370750b670712e3d091ac864a6e00a5b6ab6ef5a44b8b05a9c9732b074a0d9412c03a3f4f2e05f626c3bc366048d45570a635774447ba9024c60aff50413e2
data/lib/vcli/cli.rb CHANGED
@@ -21,7 +21,10 @@ module Vcli
21
21
  puts command
22
22
  end
23
23
 
24
- desc "login", "Login to the Abiquo VDC with stored details"
24
+ desc "login", "Login to the Abiquo VDC with stored details
25
+ Options - --target=<URL of Abiquo API>
26
+ --user=<username>
27
+ --password=<password>"
25
28
  method_option :target, :type => :string, :aliases => "-t"
26
29
  method_option :user, :type => :string, :aliases => "-u"
27
30
  method_option :password, :type => :string, :aliases => "-p"
@@ -15,7 +15,7 @@
15
15
  module Vcli
16
16
  module CLI
17
17
  class Create < Thor
18
- desc "virtualappliance", "Create Virtual Appliance"
18
+ desc "create virtualappliance", "create virtualappliance <name> <vdc>"
19
19
  def virtualappliance(name,vdc)
20
20
  begin
21
21
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
@@ -39,7 +39,7 @@ module Vcli
39
39
  end
40
40
  end
41
41
 
42
- desc "vlan", "Create VLAN Appliance"
42
+ desc "create vlan", "Create VLAN <name> <address> <mask> <gateway> <vdc id>"
43
43
  def vlan(name, address, mask, gateway, vdc)
44
44
  begin
45
45
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
@@ -15,7 +15,7 @@
15
15
  module Vcli
16
16
  module CLI
17
17
  class Delete < Thor
18
- desc "virtualappliance", "Delete Virtual Appliance"
18
+ desc "delete virtualappliance", "delete virtualappliance <virtualappliance id> <vdc id>"
19
19
  def virtualappliance(id,vdc)
20
20
  begin
21
21
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
@@ -37,7 +37,7 @@ module Vcli
37
37
  end
38
38
  end
39
39
 
40
- desc "vlan", "Create VLAN Appliance"
40
+ desc "delete vlan", "delete vlan <vlan id> <vdc id>"
41
41
  def vlan(id,vdc)
42
42
  begin
43
43
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
data/lib/vcli/cli/show.rb CHANGED
@@ -21,7 +21,7 @@ module Vcli
21
21
  module CLI
22
22
  class Show < Thor
23
23
  # Data Centers
24
- desc "datacenters", "Show all datacenters"
24
+ desc "show datacenters", "Show all datacenters"
25
25
  def datacenters( )
26
26
  begin
27
27
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
@@ -47,7 +47,8 @@ module Vcli
47
47
  end
48
48
 
49
49
  # Virtual Appliances
50
- desc "virtualappliances", "Show all virtualappliances"
50
+ desc "show virtualappliances", "show virtualappliances - Shows all Virtual Appliances
51
+ --vdc limits it to just one Virtual Data Center"
51
52
  method_option :vdc, :type => :string
52
53
  def virtualappliances( )
53
54
  begin
@@ -95,7 +96,7 @@ module Vcli
95
96
  end
96
97
 
97
98
  # VLAN
98
- desc "vlans", "Show all VLANS within your account"
99
+ desc "show vlans", "Show all VLANS within your account, Options --vdc limits query to single VDC, --ips shows IP address"
99
100
  method_option :vdc, :type => :string
100
101
  method_option :ips, :type => :boolean
101
102
  def vlans( )
@@ -154,7 +155,7 @@ module Vcli
154
155
  end
155
156
 
156
157
  # Users
157
- desc "users", "Show all users within your account"
158
+ desc "show users", "Show all users within your account"
158
159
  def users( )
159
160
  begin
160
161
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
@@ -183,7 +184,7 @@ module Vcli
183
184
  end
184
185
 
185
186
  # Enterprise
186
- desc "enterprise", "Show Enterprise details"
187
+ desc "show enterprise", "Show Enterprise details"
187
188
  method_option :ent, :type => :string
188
189
  def enterprise( )
189
190
  begin
@@ -234,7 +235,7 @@ module Vcli
234
235
  end
235
236
 
236
237
  # Templates
237
- desc "templates", "Show template details"
238
+ desc "show templates", "show templates --vdc=<vdc id>"
238
239
  method_option :vdc, :type => :string, :required => true
239
240
  def templates( )
240
241
  abq = AbiquoAPI.new(:abiquo_api_url => Vcli::target,
@@ -253,7 +254,7 @@ module Vcli
253
254
  end
254
255
 
255
256
  # Virtual Datacenters
256
- desc "virtualdatacenters", "show configured Virtual Data Centers"
257
+ desc "show virtualdatacenters", "show virtualdatacenters, options --limits show limits, --vdc=<vdc id> limits query to single VDC "
257
258
  method_option :limits, :type => :boolean
258
259
  method_option :vdc, :type => :string
259
260
  def virtualdatacenters( )
@@ -304,7 +305,7 @@ module Vcli
304
305
  end
305
306
 
306
307
  # Virtual Machines
307
- desc "virtualmachines", "show Virtual Machines"
308
+ desc "show virtualmachines", "show virtualmachines - options --va=<virtual appliance id> --vdc=<vdc id>"
308
309
  method_option :va, :type => :string
309
310
  method_option :vdc, :type => :string
310
311
  def virtualmachines( )
data/lib/vcli/version.rb CHANGED
@@ -12,7 +12,9 @@ module Vcli
12
12
  # 0.2.1 #27072015# Added template functionality
13
13
  #################################################################
14
14
  # 0.2.2 #28072015# Added VLAN functionality
15
+ #################################################################
16
+ # 0.2.3 #28072015# Added more help in the thor packages
15
17
  #################################################################
16
18
 
17
- VERSION = "0.2.2"
19
+ VERSION = "0.2.3"
18
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Fearn