awscli 0.2.4 → 0.2.5
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.
- checksums.yaml +8 -8
- data/lib/awscli/cli.rb +0 -2
- data/lib/awscli/cli/ec2/instances.rb +7 -0
- data/lib/awscli/ec2.rb +10 -0
- data/lib/awscli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTVlMWI2YTU4MDVhMDA4NTJmMTYyMzE5ZWQwYzk3NzkxYzZmZWFhMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTFjYmUwNTA5MmJiZDdmNTgzZDRjYmRhYmE0MzBmNzg1YTYyMWY5Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTEzYmQ0YjBjMDVkOTU2MzE0YWQ0OWI5ZWM3NjhhNDAyZDlmNjI5YjgwMGY4
|
10
|
+
NDMxOGNiMzE4MGU2NGNjMTkwNTExNzJiYzk1MGRhYzJjZDAwZDU1YjRhNzk5
|
11
|
+
MjYyZTUwYzRkZTVkNTZhMmVmYmZkY2FlODFhYjllM2Q2NTlkOTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzMwYjhlMWY4ZTMwYzYxMTc4YTVmZjY0MWM0M2ZlMTJhZTMxYmViZjU5ODdj
|
14
|
+
MGU1ZmYwZjBiNTM5ZDZiMmFiYzkxY2I1OTkwYmEzMTI2OGY0NDRjNDcwNmNj
|
15
|
+
ZWJiZjM2MWRlNWJjMTU2ZjFjYzhiMGVjMzNiNDJmZDFmODdhODg=
|
data/lib/awscli/cli.rb
CHANGED
@@ -2,7 +2,6 @@ module AwsCli
|
|
2
2
|
#This it the main cli runner class
|
3
3
|
#All class_methods should be defined here except for Thor::Groups
|
4
4
|
class Cli < ::Thor
|
5
|
-
|
6
5
|
default_task :help_banner #if no option is passed call help_banner task
|
7
6
|
# class_option :config, :banner => "PATH", :type => :string,
|
8
7
|
# :desc => 'Configuration file, accepts ENV $AWSCLI_CONFIG_FILE',
|
@@ -16,6 +15,5 @@ module AwsCli
|
|
16
15
|
HELP
|
17
16
|
help #call help
|
18
17
|
end
|
19
|
-
|
20
18
|
end
|
21
19
|
end
|
@@ -30,6 +30,13 @@ module AwsCli
|
|
30
30
|
@ec2.list_instances
|
31
31
|
end
|
32
32
|
|
33
|
+
desc "describe_instance", "list all instnace parameters"
|
34
|
+
method_option :instance_id, :aliases => "-i", :banner => "INSTANCEID", :type => :string, :desc => "Id of the instance to describe"
|
35
|
+
def describe_instance
|
36
|
+
create_ec2_object
|
37
|
+
@ec2.describe_instance(options)
|
38
|
+
end
|
39
|
+
|
33
40
|
desc "list_all", "lists instances for all regions"
|
34
41
|
def list_all
|
35
42
|
Awscli::Instances::REGIONS.each do |region|
|
data/lib/awscli/ec2.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
module Awscli
|
2
2
|
module EC2
|
3
|
+
require 'pp'
|
3
4
|
|
4
5
|
class EC2
|
5
6
|
|
@@ -66,6 +67,15 @@ module Awscli
|
|
66
67
|
end
|
67
68
|
end
|
68
69
|
|
70
|
+
# describe one or more instances
|
71
|
+
def describe_instance(options)
|
72
|
+
if options[:instance_id]
|
73
|
+
pp @conn.describe_instances('instance-id' => options[:instance_id]).data[:body]
|
74
|
+
else
|
75
|
+
pp @conn.describe_instances.data[:body]
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
69
79
|
# reset instance attribute
|
70
80
|
#def reset_instance_attribute(instance_id, attribute)
|
71
81
|
#end
|
data/lib/awscli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awscli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashrith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|