zzdeploy 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Commands
16
16
  end
17
17
 
18
18
  def register(opts, global_options)
19
- opts.banner = "Usage: chef_apply [options]"
19
+ opts.banner = "Usage: chef_bake [options]"
20
20
  opts.description = "Apply the chef scripts"
21
21
 
22
22
  opts.on('-g', "--group name", "Required - Name of this deploy group.") do |v|
@@ -29,7 +29,7 @@ module Commands
29
29
  end
30
30
 
31
31
  def register(opts, global_options)
32
- opts.banner = "Usage: create_deploy_group [options]"
32
+ opts.banner = "Usage: deploy_group_create [options]"
33
33
  opts.description = "Create a deploy group"
34
34
 
35
35
  opts.on('-g', "--group name", "Required - Name of this deploy group.") do |v|
@@ -16,7 +16,7 @@ module Commands
16
16
  end
17
17
 
18
18
  def register(opts, global_options)
19
- opts.banner = "Usage: delete_deploy_group [options]"
19
+ opts.banner = "Usage: deploy_group_delete [options]"
20
20
  opts.description = "Delete a deploy group"
21
21
 
22
22
  opts.on('-g', "--group name", "Required - Name of this deploy group.") do |v|
@@ -15,7 +15,7 @@ module Commands
15
15
  end
16
16
 
17
17
  def register(opts, global_options)
18
- opts.banner = "Usage: list_deploy_groups [options]"
18
+ opts.banner = "Usage: deploy_group_list [options]"
19
19
  opts.description = "List the deploy groups"
20
20
 
21
21
  end
@@ -18,8 +18,8 @@ module Commands
18
18
  end
19
19
 
20
20
  def register(opts, global_options)
21
- opts.banner = "Usage: add [options]"
22
- opts.description = "Add a server instance"
21
+ opts.banner = "Usage: list [options]"
22
+ opts.description = "List the server instances"
23
23
 
24
24
  opts.on('-r', "--role role", MetaOptions.roles, "Role to look for.") do |v|
25
25
  options[:role] = v
@@ -20,7 +20,7 @@ module Commands
20
20
 
21
21
  def register(opts, global_options)
22
22
  opts.banner = "Usage: multi_ssh [options]"
23
- opts.description = "SSH into a server"
23
+ opts.description = "Run a remote command on multiple servers via ssh"
24
24
 
25
25
  opts.on('-i', "--instances instance1,instance2,etc", Array, "The instance(s) to connect to.") do |v|
26
26
  options[:instances] = v
data/lib/info.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Info
2
2
  def self.version
3
- "0.0.8"
3
+ "0.0.9"
4
4
  end
5
5
  end
data/lib/zz_deploy.rb CHANGED
@@ -50,7 +50,7 @@ class ZZDeploy
50
50
  sub_commands[:ssh] = Commands::SSHInstance.new
51
51
  sub_commands[:multi_ssh] = Commands::MultiSSHInstance.new
52
52
  sub_commands[:chef_upload] = Commands::ChefUpload.new
53
- sub_commands[:chef_apply] = Commands::ChefBake.new
53
+ sub_commands[:chef_bake] = Commands::ChefBake.new
54
54
  sub_commands[:config_amazon] = Commands::ConfigAmazon.new
55
55
  end
56
56
 
@@ -176,7 +176,7 @@ class ZZDeploy
176
176
 
177
177
  def print_actions
178
178
  cmdtext = "Commands are:"
179
- @commands.each_pair do |c, opt|
179
+ @commands.sort.map do |c, opt|
180
180
  #puts "inside opt.call loop"
181
181
  desc = opt.call.description
182
182
  cmdtext << "\n #{c} : #{desc}"
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Greg Seitz