cloudster 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ source "http://rubygems.org"
8
8
  gem "fog"
9
9
  gem "json"
10
10
  group :development do
11
- gem "rspec", "~> 2.8.0"
11
+ gem "rspec"
12
12
  gem "rdoc", "~> 3.12"
13
13
  gem "bundler"
14
14
  gem "jeweler", "~> 1.8.4"
data/Gemfile.lock CHANGED
@@ -59,4 +59,4 @@ DEPENDENCIES
59
59
  jeweler (~> 1.8.4)
60
60
  json
61
61
  rdoc (~> 3.12)
62
- rspec (~> 2.8.0)
62
+ rspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Cloudster
1
+ # Cloudster [![Build Status](https://travis-ci.org/emilsoman/cloudster.png)](https://travis-ci.org/emilsoman/cloudster) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/emilsoman/cloudster) [![Dependency Status](https://gemnasium.com/emilsoman/cloudster.png)](https://gemnasium.com/emilsoman/cloudster)
2
2
 
3
3
  Cloudster exposes simple helper methods to provision your AWS cloud.
4
4
  Cloudster uses the AWS APIs to provision stacks on Amazon Cloud.
@@ -49,4 +49,4 @@ And most importantly :
49
49
 
50
50
  MIT
51
51
 
52
- *Free Software, Sweet Child !*
52
+ *Free Software, Forever . YEAH !*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
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 = "0.0.1"
8
+ s.version = "0.0.2"
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-10-28"
12
+ s.date = "2012-10-29"
13
13
  s.description = "Cloudster uses the AWS APIs to provision stacks on Amazon Cloud."
14
14
  s.email = "emil.soman@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
46
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
47
  s.add_runtime_dependency(%q<fog>, [">= 0"])
48
48
  s.add_runtime_dependency(%q<json>, [">= 0"])
49
- s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
49
+ s.add_development_dependency(%q<rspec>, [">= 0"])
50
50
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
51
51
  s.add_development_dependency(%q<bundler>, [">= 0"])
52
52
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
54
54
  else
55
55
  s.add_dependency(%q<fog>, [">= 0"])
56
56
  s.add_dependency(%q<json>, [">= 0"])
57
- s.add_dependency(%q<rspec>, ["~> 2.8.0"])
57
+ s.add_dependency(%q<rspec>, [">= 0"])
58
58
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
59
59
  s.add_dependency(%q<bundler>, [">= 0"])
60
60
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -63,7 +63,7 @@ Gem::Specification.new do |s|
63
63
  else
64
64
  s.add_dependency(%q<fog>, [">= 0"])
65
65
  s.add_dependency(%q<json>, [">= 0"])
66
- s.add_dependency(%q<rspec>, ["~> 2.8.0"])
66
+ s.add_dependency(%q<rspec>, [">= 0"])
67
67
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
68
68
  s.add_dependency(%q<bundler>, [">= 0"])
69
69
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
@@ -38,9 +38,9 @@ module Cloudster
38
38
  # * JSON cloud formation template
39
39
  def template(options = {})
40
40
  description = options[:description] || 'This stack is created by Cloudster'
41
- resource_template = { 'Resources' => {}}
41
+ resource_template = {}
42
42
  @resources.each do |resource|
43
- resource_template['Resources'].merge!(resource.template['Resources'])
43
+ resource_template.merge!(resource.template['Resources'])
44
44
  end
45
45
 
46
46
  cloud_template = {'AWSTemplateFormatVersion' => '2010-09-09',
data/spec/cloud_spec.rb CHANGED
@@ -14,7 +14,7 @@ describe Cloudster::Cloud do
14
14
  ec2 = Cloudster::Ec2.new(:key_name => 'testkey', :image_id => 'image_id', name: 'name')
15
15
  ec2_1 = Cloudster::Ec2.new(:key_name => 'testkey1', :image_id => 'image_id1', name: 'name1')
16
16
  cloud = Cloudster::Cloud.new(:resources => [ec2, ec2_1])
17
- cloud.template(:description => 'test template').should == {"AWSTemplateFormatVersion"=>"2010-09-09", "Description"=>"test template", "Resources"=>{"Resources"=>{"name"=>{"Type"=>"AWS::EC2::Instance", "Properties"=>{"KeyName"=>"testkey", "ImageId"=>"image_id"}}, "name1"=>{"Type"=>"AWS::EC2::Instance", "Properties"=>{"KeyName"=>"testkey1", "ImageId"=>"image_id1"}}}}}.to_json
17
+ cloud.template(:description => 'test template').should == {"AWSTemplateFormatVersion"=>"2010-09-09", "Description"=>"test template", "Resources"=>{"name"=>{"Type"=>"AWS::EC2::Instance", "Properties"=>{"KeyName"=>"testkey", "ImageId"=>"image_id"}}, "name1"=>{"Type"=>"AWS::EC2::Instance", "Properties"=>{"KeyName"=>"testkey1", "ImageId"=>"image_id1"}}}}.to_json
18
18
  end
19
19
  end
20
20
 
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: 0.0.1
4
+ version: 0.0.2
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-10-28 00:00:00.000000000 Z
12
+ date: 2012-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
@@ -48,17 +48,17 @@ dependencies:
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
- - - ~>
51
+ - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: 2.8.0
53
+ version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
- - - ~>
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.8.0
61
+ version: '0'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rdoc
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: -197011123
165
+ hash: -963662573
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements: