cloudster 1.0.0 → 2.0.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/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.0.0
1
+ 2.0.0
data/cloudster.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "cloudster"
8
- s.version = "1.0.0"
8
+ s.version = "2.0.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"]
@@ -108,7 +108,7 @@ module Cloudster
108
108
  # ==== Returns
109
109
  # * response<~Excon::Response>:
110
110
  # * body<~Hash>:
111
- def self.events(options = {})
111
+ def events(options = {})
112
112
  return @cloud_formation.describe_stack_events(options[:stack_name])
113
113
  end
114
114
 
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 create an instance of cloud formation and trigger stack creation" do
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: 1.0.0
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: 814811471
165
+ hash: -639543533
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements: