Class: AMI::Commands::List

Inherits:
Object
  • Object
show all
Defined in:
lib/ami/commands/list.rb

Instance Method Summary collapse

Instance Method Details

#run(argv) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ami/commands/list.rb', line 5

def run(argv)
  AMI::Core.load_amis

  AMI::Core.all_amis.each do |name, ami|
    puts "#{name}"
  end
end