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.
- data/lib/awscli/cli/ec2/instances.rb +10 -1
- data/lib/awscli/version.rb +1 -1
- metadata +1 -1
|
@@ -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.
|
data/lib/awscli/version.rb
CHANGED