cloudstack-cli 1.2.3 → 1.2.4

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: cc064233ad69fcbca3fb8bc2f504546fd4244257
4
- data.tar.gz: 97bd753bc8778d65abffcf985110cc10503577e0
3
+ metadata.gz: af33fbc2eb5c099bbb2492f3ffc94dbdb0207790
4
+ data.tar.gz: 79ff5405d147afc75c35f2831e5c2bebe698716e
5
5
  SHA512:
6
- metadata.gz: 500e60456cb9e11ef97e30a786efed03823c0f13b58716b9573638a82dd06195f166ff3f8411ebf5699e6b9071b8e753e2a3f4b6619ddd937c56f28eae5daf00
7
- data.tar.gz: 316a46b27c0ba7d950b2c422c131689ec9873539effe83bdf6d92734591b846774eace65bf4e4f2b5833be177024a20c1d322c744163b4ecb6bc06f2f30f79a3
6
+ metadata.gz: fdc510c21f629586df1a7053d680f97506ed852fd2651071160c8574f1fb0b8dd31dd54d0ba78d92ad640d2c993f6e19cd56b93ca790a544e97dbaf2a153940b
7
+ data.tar.gz: ec560b06fb8d6570da88d66f611e34a4c483254bd89c18a1b6a1ad85db05fc3e75ba6f997134d484a3f8d475c8b0e2f12e0e44bacbddce9ea0a1167d2b3d00e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../cloudstack_client/
3
3
  specs:
4
- cloudstack_client (1.2.2)
4
+ cloudstack_client (1.2.3)
5
5
  multi_json (~> 1.11)
6
6
 
7
7
  PATH
@@ -16,7 +16,7 @@ GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
18
  multi_json (1.11.2)
19
- rake (10.4.2)
19
+ rake (10.5.0)
20
20
  thor (0.19.1)
21
21
 
22
22
  PLATFORMS
data/README.md CHANGED
@@ -17,13 +17,24 @@ $ gem install cloudstack-cli
17
17
 
18
18
  ### Create a cloudstack-cli environment
19
19
 
20
+ cloudstack-cli expects to find a configuration file with the API URL and your CloudStack credentials in your home directory named .cloudstack-cli.yml. If the file is located elsewhere you can specify the location using the --config option.
21
+
20
22
  *Create your initial environment, which defines your connection options:*
21
23
 
22
24
  ```bash
23
- $ cloudstack-cli environment add production
25
+ $ cloudstack-cli setup
24
26
  ```
25
27
 
26
- cloudstack-cli expects to find a configuration file with the API URL and your CloudStack credentials in your home directory named .cloudstack-cli.yml. If the file is located elsewhere you can specify the location using the --config option.
28
+ "cloudstack-cli setup" (or "cloudstack-cli environment add") requires the following options:
29
+ - The full URL of your CloudStack API, i.e. "https://cloud.local/client/api"
30
+ - Your API Key (generate it under Accounts > Users if not already available)
31
+ - Your Secret Key (see above)
32
+
33
+ *Add an additional environment:*
34
+
35
+ ```bash
36
+ $ cloudstack-cli env add production
37
+ ```
27
38
 
28
39
  cloudstack-cli supports multiple environments using the --environment option.
29
40
 
@@ -7,7 +7,7 @@ class IpAddress < CloudstackCli::Base
7
7
  end
8
8
  end
9
9
 
10
- desc "ip_address assign NETWORK", "assign a public IP address"
10
+ desc "assign NETWORK", "assign a public IP address"
11
11
  option :project
12
12
  def assign(network)
13
13
  resolve_project
@@ -8,6 +8,7 @@ module CloudstackCli
8
8
  resolve_template
9
9
  resolve_disk_offering
10
10
  resolve_iso
11
+ options[:size] = options[:disk_size] if options[:disk_size]
11
12
  unless options[:template_id]
12
13
  say "Error: Template or ISO is required.", :red
13
14
  exit 1
@@ -106,7 +107,8 @@ module CloudstackCli
106
107
  say "Error: Iso '#{options[:iso]}' is invalid.", :red
107
108
  exit 1
108
109
  end
109
- unless options[:diskoffering_id]
110
+ unless options[:disk_offering_id]
111
+ puts options
110
112
  say "Error: a disk offering is required when using iso.", :red
111
113
  exit 1
112
114
  end
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
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: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-10 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake