cloudstack-cli 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -0
- data/cloudstack-cli.gemspec +1 -1
- data/completions/cs.bash +12 -8
- data/lib/cloudstack-cli/base.rb +1 -1
- data/lib/cloudstack-cli/cli.rb +1 -1
- data/lib/cloudstack-cli/version.rb +1 -1
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da9fb590abf9e1b51dca08f585f3ef45a01afb7c
|
4
|
+
data.tar.gz: 2dfbf8591fce28836006ae7da42cd0f8646d75d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d1ec79811b8c04409506d410cf1dc23f52f1698f409459545057f1de799633fac38e703481a88c02f81854ec9b3409f18375b52753764f9baaeb6c685a3a862
|
7
|
+
data.tar.gz: 0c00fb692b6ede12f4ab4fb657b522b8c17f50485828bdd95895848ef9a3b6ded98986fb6a6d2430480fa4502ca0d90aecce51828956c03a056c6ad751357db0
|
data/Rakefile
ADDED
data/cloudstack-cli.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.description = %q{cloudstack-cli is a CloudStack API command line client written in Ruby.}
|
12
12
|
gem.summary = %q{cloudstack-cli CloudStack API client}
|
13
13
|
gem.date = Time.now.utc.strftime("%Y-%m-%d")
|
14
|
-
gem.homepage = '
|
14
|
+
gem.homepage = 'http://niwo.github.io/cloudstack-cli/'
|
15
15
|
gem.license = 'MIT'
|
16
16
|
|
17
17
|
gem.required_ruby_version = '>= 1.9.3'
|
data/completions/cs.bash
CHANGED
@@ -17,20 +17,24 @@
|
|
17
17
|
_cs() {
|
18
18
|
COMPREPLY=()
|
19
19
|
local word="${COMP_WORDS[COMP_CWORD]}"
|
20
|
+
# list available base commands
|
20
21
|
if [ "$COMP_CWORD" -eq 1 ]; then
|
21
22
|
COMPREPLY=( $(compgen -W "$(cs help | grep cs | cut -d ' ' -f4)" -- "$word") )
|
22
23
|
else
|
23
24
|
local words=("${COMP_WORDS[@]}")
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
# ignore commands which contain 'help'
|
26
|
+
if [[ "${words[@]}" == *help* ]]; then
|
27
|
+
COMPREPLY=( $(compgen -W '' -- "$word") )
|
28
|
+
# search for subcommand
|
29
|
+
elif [[ "$word" != -* ]] && [ -n "$word" ]; then
|
30
|
+
local cp1=$(echo ${words[@]} | cut -d ' ' -f1-2)
|
31
|
+
COMPREPLY=( $(compgen -W "$($cp1 help | grep cs | cut -d ' ' -f5)" -- "$word") )
|
32
|
+
# list options for the subcommand
|
33
|
+
elif [[ "$word" =~ -* ]] && [ $(echo ${words[@]} | wc -w) -gt 2 ]; then
|
28
34
|
local cp1=$(echo ${words[@]} | cut -d ' ' -f1-2)
|
29
35
|
local cp2=$(echo ${words[@]} | cut -d ' ' -f3)
|
30
|
-
|
31
|
-
|
32
|
-
COMPREPLY=( $(compgen -W "$(echo $cp3 | awk 'NR>1{print $1}' RS=[ FS='\=')" -- "$word") )
|
33
|
-
fi
|
36
|
+
local cp3=$($cp1 help $cp2 2>/dev/null)
|
37
|
+
COMPREPLY=( $(compgen -W "$(echo $cp3 | awk 'NR>1{print $1}' RS=[ FS='\=')" -- "$word") )
|
34
38
|
fi
|
35
39
|
fi
|
36
40
|
}
|
data/lib/cloudstack-cli/base.rb
CHANGED
@@ -33,7 +33,7 @@ module CloudstackCli
|
|
33
33
|
def load_configuration(config_file = options[:config_file], env = options[:env])
|
34
34
|
unless File.exists?(config_file)
|
35
35
|
say "Configuration file #{config_file} not found.", :red
|
36
|
-
say "Please run \'cs
|
36
|
+
say "Please run \'cs environment add\' to create one."
|
37
37
|
exit 1
|
38
38
|
end
|
39
39
|
|
data/lib/cloudstack-cli/cli.rb
CHANGED
@@ -29,7 +29,7 @@ module CloudstackCli
|
|
29
29
|
:config_file => options[:config_file]
|
30
30
|
end
|
31
31
|
|
32
|
-
desc "completion", "loads the shell scripts for tab auto-completion"
|
32
|
+
desc "completion", "loads the shell scripts for <tab> auto-completion"
|
33
33
|
option :shell, default: 'bash'
|
34
34
|
def completion
|
35
35
|
shell_script = File.join(
|
metadata
CHANGED
@@ -1,75 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
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-
|
11
|
+
date: 2014-02-25 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
33
|
version: '10.1'
|
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
40
|
version: '10.1'
|
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
47
|
version: '0.18'
|
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
54
|
version: '0.18'
|
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
61
|
version: '0.4'
|
62
|
-
- -
|
62
|
+
- - '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: 0.4.4
|
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
71
|
version: '0.4'
|
72
|
-
- -
|
72
|
+
- - '>='
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 0.4.4
|
75
75
|
description: cloudstack-cli is a CloudStack API command line client written in Ruby.
|
@@ -80,12 +80,13 @@ executables:
|
|
80
80
|
extensions: []
|
81
81
|
extra_rdoc_files: []
|
82
82
|
files:
|
83
|
-
-
|
83
|
+
- .gitignore
|
84
84
|
- CHANGELOG.md
|
85
85
|
- Gemfile
|
86
86
|
- Gemfile.lock
|
87
87
|
- LICENSE.txt
|
88
88
|
- README.md
|
89
|
+
- Rakefile
|
89
90
|
- bin/cs
|
90
91
|
- cloudstack-cli.gemspec
|
91
92
|
- completions/cs.bash
|
@@ -124,29 +125,29 @@ files:
|
|
124
125
|
- lib/cloudstack-cli/helper.rb
|
125
126
|
- lib/cloudstack-cli/version.rb
|
126
127
|
- test/stack_example.json
|
127
|
-
homepage:
|
128
|
+
homepage: http://niwo.github.io/cloudstack-cli/
|
128
129
|
licenses:
|
129
130
|
- MIT
|
130
131
|
metadata: {}
|
131
132
|
post_install_message:
|
132
133
|
rdoc_options:
|
133
|
-
-
|
134
|
-
-
|
134
|
+
- --line-numbers
|
135
|
+
- --inline-source
|
135
136
|
require_paths:
|
136
137
|
- lib
|
137
138
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
139
|
requirements:
|
139
|
-
- -
|
140
|
+
- - '>='
|
140
141
|
- !ruby/object:Gem::Version
|
141
142
|
version: 1.9.3
|
142
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
144
|
requirements:
|
144
|
-
- -
|
145
|
+
- - '>='
|
145
146
|
- !ruby/object:Gem::Version
|
146
147
|
version: '0'
|
147
148
|
requirements: []
|
148
149
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.0.3
|
150
151
|
signing_key:
|
151
152
|
specification_version: 4
|
152
153
|
summary: cloudstack-cli CloudStack API client
|