cloudster 2.11.0 → 2.12.0
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/.travis.yml +0 -4
- data/README.md +38 -0
- data/VERSION +1 -1
- data/cloudster.gemspec +2 -2
- data/lib/cloudster/cloud.rb +38 -0
- metadata +3 -3
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -79,6 +79,44 @@ Cloudster can also do things on the AWS Cloud :
|
|
79
79
|
|
80
80
|
cloud.events(:stack_name => 'TestStack')
|
81
81
|
|
82
|
+
- Describe the attributes of a stack :
|
83
|
+
|
84
|
+
cloud.describe(:stack_name => 'TestStack')
|
85
|
+
|
86
|
+
- Describe all resources of a stack :
|
87
|
+
|
88
|
+
cloud.resources(:stack_name => 'TestStack')
|
89
|
+
|
90
|
+
- Get the status of a stack :
|
91
|
+
|
92
|
+
cloud.status(:stack_name => 'TestStack')
|
93
|
+
|
94
|
+
- Describe the RDS endpoints in a stack :
|
95
|
+
|
96
|
+
cloud.get_database_endpoints(:stack_name => 'TestStack')
|
97
|
+
|
98
|
+
- Get the details of all EC2 intances in a stack :
|
99
|
+
|
100
|
+
cloud.get_ec2_details(:stack_name => 'TestStack')
|
101
|
+
|
102
|
+
- Get the details of all RDS intances in a stack :
|
103
|
+
|
104
|
+
cloud.get_rds_details(:stack_name => 'TestStack')
|
105
|
+
|
106
|
+
- Get the details of all ELB intances in a stack :
|
107
|
+
|
108
|
+
cloud.get_elb_details(:stack_name => 'TestStack')
|
109
|
+
|
110
|
+
- Get details of all keypairs created in the AWS account :
|
111
|
+
|
112
|
+
cloud.get_key_pairs
|
113
|
+
|
114
|
+
- Get details of all Security Groups created in the AWS account :
|
115
|
+
|
116
|
+
cloud.get_security_groups
|
117
|
+
|
118
|
+
# More coming soon !
|
119
|
+
|
82
120
|
----------------
|
83
121
|
|
84
122
|
# Contribute !
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.12.0
|
data/cloudster.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "cloudster"
|
8
|
-
s.version = "2.
|
8
|
+
s.version = "2.12.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Emil Soman"]
|
12
|
-
s.date = "2012-11-
|
12
|
+
s.date = "2012-11-30"
|
13
13
|
s.description = "Cloudster is a Ruby gem that was born to cut the learning curve involved \n in writing your own CloudFormation templates. If you don't know what a CloudFormation template is, \n but know about the AWS Cloud offerings, you can still use cloudster to provision your stack. \n Still in infancy , cloudster can create a very basic stack like a breeze. All kinds of contribution welcome !"
|
14
14
|
s.email = "emil.soman@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/cloudster/cloud.rb
CHANGED
@@ -341,6 +341,44 @@ module Cloudster
|
|
341
341
|
return description["StackStatus"] rescue nil
|
342
342
|
end
|
343
343
|
|
344
|
+
# Returns all keypairs created in the AWS account
|
345
|
+
#
|
346
|
+
# ==== Examples
|
347
|
+
# cloud = Cloudster::Cloud.new(
|
348
|
+
# :access_key_id => 'aws_access_key_id'
|
349
|
+
# :secret_access_key => 'aws_secret_access_key',
|
350
|
+
# )
|
351
|
+
# cloud.get_key_pairs
|
352
|
+
#
|
353
|
+
# ==== Parameters
|
354
|
+
# * none
|
355
|
+
#
|
356
|
+
# ==== Returns
|
357
|
+
# * Array of hashes, example: [{"keyName"=>"default", "keyFingerprint"=>"84:67:e2:f8:04:c1:5f:d4:ff"}]
|
358
|
+
def get_key_pairs
|
359
|
+
ec2 = Fog::Compute::AWS.new(:aws_access_key_id => @access_key_id, :aws_secret_access_key => @secret_access_key)
|
360
|
+
return ec2.describe_key_pairs.body["keySet"] rescue []
|
361
|
+
end
|
362
|
+
|
363
|
+
# Returns all SecurityGroups created in the AWS account
|
364
|
+
#
|
365
|
+
# ==== Examples
|
366
|
+
# cloud = Cloudster::Cloud.new(
|
367
|
+
# :access_key_id => 'aws_access_key_id'
|
368
|
+
# :secret_access_key => 'aws_secret_access_key',
|
369
|
+
# )
|
370
|
+
# cloud.get_security_groups
|
371
|
+
#
|
372
|
+
# ==== Parameters
|
373
|
+
# * none
|
374
|
+
#
|
375
|
+
# ==== Returns
|
376
|
+
# * Array of hashes containing the security group details
|
377
|
+
def get_security_groups
|
378
|
+
ec2 = Fog::Compute::AWS.new(:aws_access_key_id => @access_key_id, :aws_secret_access_key => @secret_access_key)
|
379
|
+
return ec2.describe_security_groups.body["securityGroupInfo"] rescue []
|
380
|
+
end
|
381
|
+
|
344
382
|
private
|
345
383
|
|
346
384
|
#Returns a hash {<logical_resource_id> => <physical_resource_id>}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
@@ -158,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
segments:
|
160
160
|
- 0
|
161
|
-
hash:
|
161
|
+
hash: -396938047
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
164
164
|
requirements:
|