awscli 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTc1ZTI5Y2M1OGViZmMzOGFhYTAzMzg5Y2UyNDZjODc3YTMzZTU3YQ==
4
+ YTVlMWI2YTU4MDVhMDA4NTJmMTYyMzE5ZWQwYzk3NzkxYzZmZWFhMw==
5
5
  data.tar.gz: !binary |-
6
- ZWJkMDk2MzViYzdlMTliNTk1MDlkOWExZTc4M2Q2MmVhYjM0ZmExOA==
6
+ NTFjYmUwNTA5MmJiZDdmNTgzZDRjYmRhYmE0MzBmNzg1YTYyMWY5Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjMyOGZmYWVlODAwMmMxYTE0NjI2MzAyMGE4NGJhMGVmNzQyY2VjOTI4ZTI1
10
- ZDkyZjk0YjdlNmNmNWMyZmM3Y2FmOTY4OWYwN2QwMGZiMmZkZWUzOTA1N2Nj
11
- MmFhNmUwNGU4ZjM4YjI2NjFlN2MwMDAzNmI3OWVhZWFlNmQyMTk=
9
+ OTEzYmQ0YjBjMDVkOTU2MzE0YWQ0OWI5ZWM3NjhhNDAyZDlmNjI5YjgwMGY4
10
+ NDMxOGNiMzE4MGU2NGNjMTkwNTExNzJiYzk1MGRhYzJjZDAwZDU1YjRhNzk5
11
+ MjYyZTUwYzRkZTVkNTZhMmVmYmZkY2FlODFhYjllM2Q2NTlkOTY=
12
12
  data.tar.gz: !binary |-
13
- MTEzMWIzOWFmMDEyZGI4Zjg4MjE1YzNmZGE3Yzk1ZWRmNzBmMGFmYWFlMGFl
14
- ZWNiNmIxNDZkNjc4NzQ4M2FlMTg0MTE1NDA3ZmMyYTVmY2RmY2JiZjY5ZGJk
15
- Nzc3OTU3M2JhNGNmM2M3ZjljMDllMTI5MzcwYWRjYmY0MDBlNGE=
13
+ NzMwYjhlMWY4ZTMwYzYxMTc4YTVmZjY0MWM0M2ZlMTJhZTMxYmViZjU5ODdj
14
+ MGU1ZmYwZjBiNTM5ZDZiMmFiYzkxY2I1OTkwYmEzMTI2OGY0NDRjNDcwNmNj
15
+ ZWJiZjM2MWRlNWJjMTU2ZjFjYzhiMGVjMzNiNDJmZDFmODdhODg=
@@ -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|
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Awscli
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
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
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-09-14 00:00:00.000000000 Z
11
+ date: 2013-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake