zzdeploy 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/info.rb +1 -1
- data/lib/zz_deploy.rb +19 -2
- metadata +8 -6
data/lib/info.rb
CHANGED
data/lib/zz_deploy.rb
CHANGED
@@ -12,7 +12,7 @@ class ZZDeploy
|
|
12
12
|
include Subcommands
|
13
13
|
|
14
14
|
VERSION = "0.0.4"
|
15
|
-
CMD = "
|
15
|
+
CMD = "zz"
|
16
16
|
|
17
17
|
RECIPES_DIR = "/var/chef/cookbooks/zz-chef-repo"
|
18
18
|
RECIPES_BUNDLE_DIR = "/var/chef/cookbooks/zz-chef-repo_bundle"
|
@@ -59,7 +59,7 @@ class ZZDeploy
|
|
59
59
|
set_amazon_options
|
60
60
|
# global options
|
61
61
|
global_options do |opts|
|
62
|
-
opts.banner = "Version: #{VERSION} - Usage:
|
62
|
+
opts.banner = "Version: #{VERSION} - Usage: #{CMD} [options] [subcommand [options]]"
|
63
63
|
opts.description = "ZangZing configuration and deploy tool. You must specify a valid sub command."
|
64
64
|
opts.separator ""
|
65
65
|
opts.separator "Global options are:"
|
@@ -174,4 +174,21 @@ class ZZDeploy
|
|
174
174
|
return exit_code
|
175
175
|
end
|
176
176
|
|
177
|
+
def print_actions
|
178
|
+
cmdtext = "Commands are:"
|
179
|
+
@commands.each_pair do |c, opt|
|
180
|
+
#puts "inside opt.call loop"
|
181
|
+
desc = opt.call.description
|
182
|
+
cmdtext << "\n #{c} : #{desc}"
|
183
|
+
end
|
184
|
+
|
185
|
+
# print aliases
|
186
|
+
unless @aliases.empty?
|
187
|
+
cmdtext << "\n\nAliases: \n"
|
188
|
+
@aliases.each_pair { |name, val| cmdtext << " #{name} - #{val}\n" }
|
189
|
+
end
|
190
|
+
|
191
|
+
cmdtext << "\n\nSee '#{CMD} help COMMAND' for more information on a specific command."
|
192
|
+
end
|
193
|
+
|
177
194
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zzdeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Greg Seitz
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-08 00:00:00
|
18
|
+
date: 2011-08-08 00:00:00 -07:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: subcommand
|
@@ -178,6 +179,7 @@ files:
|
|
178
179
|
- LICENSE
|
179
180
|
- README.rdoc
|
180
181
|
- spec/spec_helper.rb
|
182
|
+
has_rdoc: true
|
181
183
|
homepage:
|
182
184
|
licenses: []
|
183
185
|
|
@@ -210,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
212
|
requirements: []
|
211
213
|
|
212
214
|
rubyforge_project:
|
213
|
-
rubygems_version: 1.
|
215
|
+
rubygems_version: 1.3.7
|
214
216
|
signing_key:
|
215
217
|
specification_version: 3
|
216
218
|
summary: ZangZing Amazon Deploy tools
|