Sha256: 927f079399dd5202ecd476410d2045a4a98c25e1fe4cb97359e6493ba35bdc3b

Contents?: true

Size: 1.04 KB

Versions: 14

Compression:

Stored size: 1.04 KB

Contents

module Commands
  class DeployGroupList

    # holds the options that were passed
    # you can set any initial defaults here
    def options
      @options ||= {
      }
    end

    # required options
    def required_options
      @required_options ||= Set.new [
      ]
    end

    def register(opts, global_options)
      opts.banner = "Usage: deploy_group_list [options]"
      opts.description = "List the deploy groups"

    end


    def run(global_options, amazon)
      ec2 = amazon.ec2

      # first see if already exists
      deploy_groups = ZZSharedLib::DeployGroupSimpleDB.find_all_by_zz_object_type(ZZSharedLib::DeployGroupSimpleDB.object_type, :auto_load => true)

      deploy_groups.each do |deploy_group|
        puts "Name: #{deploy_group[:group]}"
        puts "Recipes_deploy_tag: #{deploy_group[:recipes_deploy_tag]}"
        puts "App_deploy_tag: #{deploy_group[:app_deploy_tag]}"
        puts "Config Json:"
        pretty = JSON.pretty_generate(deploy_group.config)
        puts "#{pretty}"
        puts
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
zzdeploy-0.1.13 lib/commands/deploy_group_list.rb
zzdeploy-0.1.12 lib/commands/deploy_group_list.rb
zzdeploy-0.1.11 lib/commands/deploy_group_list.rb
zzdeploy-0.1.10 lib/commands/deploy_group_list.rb
zzdeploy-0.1.9 lib/commands/deploy_group_list.rb
zzdeploy-0.1.8 lib/commands/deploy_group_list.rb
zzdeploy-0.1.7 lib/commands/deploy_group_list.rb
zzdeploy-0.1.6 lib/commands/deploy_group_list.rb
zzdeploy-0.1.5 lib/commands/deploy_group_list.rb
zzdeploy-0.1.4 lib/commands/deploy_group_list.rb
zzdeploy-0.1.3 lib/commands/deploy_group_list.rb
zzdeploy-0.1.2 lib/commands/deploy_group_list.rb
zzdeploy-0.1.0 lib/commands/deploy_group_list.rb
zzdeploy-0.0.9 lib/commands/deploy_group_list.rb