cloudster 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/VERSION +1 -1
- data/cloudster.gemspec +1 -1
- data/lib/cloudster/cloud.rb +1 -1
- data/spec/cloud_spec.rb +11 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -42,6 +42,10 @@ And most importantly :
|
|
42
42
|
|
43
43
|
stack.provision(:resources => [app_server, app_server_2], :stack_name => 'TestStack', :description => 'Description of the stack')
|
44
44
|
|
45
|
+
- You can get the events of a stack using :
|
46
|
+
|
47
|
+
stack.events(:stack_name => 'TestStack')
|
48
|
+
|
45
49
|
|
46
50
|
##License
|
47
51
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
data/cloudster.gemspec
CHANGED
data/lib/cloudster/cloud.rb
CHANGED
data/spec/cloud_spec.rb
CHANGED
@@ -24,7 +24,7 @@ describe Cloudster::Cloud do
|
|
24
24
|
cloud = Cloudster::Cloud.new(:access_key_id => 'test', :secret_access_key => 'test')
|
25
25
|
expect { cloud.provision(:description => 'test') }.to raise_error(ArgumentError, 'Missing required argument: resources,stack_name' )
|
26
26
|
end
|
27
|
-
it "should
|
27
|
+
it "should trigger stack creation" do
|
28
28
|
cloud_formation = double('CloudFormation')
|
29
29
|
Fog::AWS::CloudFormation.should_receive(:new).with(:aws_access_key_id => 'test', :aws_secret_access_key => 'test').and_return cloud_formation
|
30
30
|
ec2 = Cloudster::Ec2.new(:key_name => 'testkey', :image_id => 'image_id', name: 'name')
|
@@ -33,4 +33,14 @@ describe Cloudster::Cloud do
|
|
33
33
|
cloud.provision(:resources => [ec2], :stack_name => 'stack_name', :description => 'testDescription')
|
34
34
|
end
|
35
35
|
end
|
36
|
+
|
37
|
+
describe '#events' do
|
38
|
+
it "should trigger 'describe stack events' request" do
|
39
|
+
cloud_formation = double('CloudFormation')
|
40
|
+
Fog::AWS::CloudFormation.should_receive(:new).with(:aws_access_key_id => 'test', :aws_secret_access_key => 'test').and_return cloud_formation
|
41
|
+
cloud = Cloudster::Cloud.new(:access_key_id => 'test', :secret_access_key => 'test')
|
42
|
+
cloud_formation.should_receive('describe_stack_events').with('stack_name')
|
43
|
+
cloud.events(:stack_name => 'stack_name')
|
44
|
+
end
|
45
|
+
end
|
36
46
|
end
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
segments:
|
164
164
|
- 0
|
165
|
-
hash:
|
165
|
+
hash: -639543533
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
167
|
none: false
|
168
168
|
requirements:
|