zzdeploy 0.0.8 → 0.0.9
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.
- data/lib/commands/chef_bake.rb +1 -1
- data/lib/commands/deploy_group_create.rb +1 -1
- data/lib/commands/deploy_group_delete.rb +1 -1
- data/lib/commands/deploy_group_list.rb +1 -1
- data/lib/commands/list_instances.rb +2 -2
- data/lib/commands/multi_ssh_instance.rb +1 -1
- data/lib/info.rb +1 -1
- data/lib/zz_deploy.rb +2 -2
- metadata +3 -3
    
        data/lib/commands/chef_bake.rb
    CHANGED
    
    | @@ -16,7 +16,7 @@ module Commands | |
| 16 16 | 
             
                end
         | 
| 17 17 |  | 
| 18 18 | 
             
                def register(opts, global_options)
         | 
| 19 | 
            -
                  opts.banner = "Usage:  | 
| 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:  | 
| 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:  | 
| 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|
         | 
| @@ -18,8 +18,8 @@ module Commands | |
| 18 18 | 
             
                end
         | 
| 19 19 |  | 
| 20 20 | 
             
                def register(opts, global_options)
         | 
| 21 | 
            -
                  opts.banner = "Usage:  | 
| 22 | 
            -
                  opts.description = " | 
| 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 = " | 
| 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
    
    
    
        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[: | 
| 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. | 
| 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:  | 
| 4 | 
            +
              hash: 13
         | 
| 5 5 | 
             
              prerelease: false
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 0
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 0.0. | 
| 9 | 
            +
              - 9
         | 
| 10 | 
            +
              version: 0.0.9
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - Greg Seitz
         |