Class: Rudy::CLI::AWS::EC2::Zones

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/rudy/cli/aws/ec2/zones.rb

Instance Attribute Summary

Attributes inherited from CommandBase

#config

Instance Method Summary collapse

Methods included from Huxtable

change_environment, change_position, change_region, change_role, change_zone, #check_keys, #config_dirname, create_domain, #current_group_name, #current_machine_address, #current_machine_count, #current_machine_group, #current_machine_hostname, #current_machine_image, #current_machine_name, #current_machine_size, #current_user, #current_user_keypairpath, debug?, #debug?, domain, domain_exists?, #group_metadata, #has_keypair?, #has_keys?, #has_pem_keys?, #has_root_keypair?, keypair_path_to_name, #known_machine_group?, #root_keypairname, #root_keypairpath, #switch_user, update_config, update_global, update_logger, #user_keypairname, #user_keypairpath

Instance Method Details

#zonesObject



9
10
11
12
13
14
15
# File 'lib/rudy/cli/aws/ec2/zones.rb', line 9

def zones
  rzone = Rudy::AWS::EC2::Zones.new(@@global.accesskey, @@global.secretkey, @@global.region)
  rzone.list_as_hash(@argv.name).each_value do |zon|
    puts zon.dump(@@global.format)
  end
  puts "No zones" unless rzone.any?
end