cloudstack-cli 1.2.3 → 1.2.4
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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +13 -2
- data/lib/cloudstack-cli/commands/ip_address.rb +1 -1
- data/lib/cloudstack-cli/option_resolver.rb +3 -1
- data/lib/cloudstack-cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af33fbc2eb5c099bbb2492f3ffc94dbdb0207790
|
4
|
+
data.tar.gz: 79ff5405d147afc75c35f2831e5c2bebe698716e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
25
|
+
$ cloudstack-cli setup
|
24
26
|
```
|
25
27
|
|
26
|
-
cloudstack-cli
|
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
|
|
@@ -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[:
|
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
|
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.
|
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-
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|