awscli 0.2.1 → 0.2.2

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.
@@ -24,12 +24,21 @@ module AwsCli
24
24
  If unspecified all your instances will be returned.
25
25
  LONGDESC
26
26
  def list
27
- puts "Listing Instances"
27
+ puts "Listing Instances for region: #{parent_options[:region]}"
28
28
  create_ec2_object
29
29
  # puts parent_options #access awscli/cli/ec2.rb class options
30
30
  @ec2.list_instances
31
31
  end
32
32
 
33
+ desc "list_all", "lists instances for all regions"
34
+ def list_all
35
+ Awscli::Instances::REGIONS.each do |region|
36
+ puts "Listing instances for region: #{region}"
37
+ ec2 = Awscli::EC2::EC2.new(Awscli::Connection.new.request_ec2 region)
38
+ ec2.list_instances
39
+ end
40
+ end
41
+
33
42
  desc "diatt", "list instance attributes"
34
43
  long_desc <<-LONGDESC
35
44
  Describes the specified attribute of the specified instance. You can specify only one attribute at a time.
@@ -1,3 +1,3 @@
1
1
  module Awscli
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awscli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: