Skip to content

Commit 7c23691

Browse files
author
Noah Cantor
committed
Updated Readme, and version info.
1 parent 8cd7327 commit 7c23691

File tree

3 files changed

+30
-20
lines changed

3 files changed

+30
-20
lines changed

capify-cloud.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require "capify-cloud/version"
44

55
Gem::Specification.new do |s|
66
s.name = "capify-cloud"
7-
s.version = Capify::Ec2::VERSION
7+
s.version = Capify::Cloud::VERSION
88
s.platform = Gem::Platform::RUBY
99
s.authors = ["Noah Cantor", "Siddharth Dawara"]
1010

lib/capify-cloud/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Capify
2-
module Ec2
3-
VERSION = "1.2.9"
2+
module Cloud
3+
VERSION = "1.5.0.pre"
44
end
55
end
66

readme.md

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
Capify Cloud
22
====================================================
33

4-
capify-cloud is used to generate capistrano namespaces using ec2 tags and a hack with Brightbox groups (in development).
4+
capify-cloud is used to generate capistrano namespaces using ec2 tags and a hack with Brightbox server-groups to emulate tags.
5+
Tags are simulated on Brightbox using a server_group containing a ":" (e.g. Roles:web)
56

6-
eg: If you have three servers on amazon's ec2.
7+
eg: If you have 2 servers on amazon's ec2 and a DB server at Brightbox
78

89
server-1 Tag: Roles => "web", Options => "cron,resque, db"
9-
server-2 Tag: Roles => "db"
10+
server-2 Server-Group: Roles:db
1011
server-3 Tag: Roles => "web,db, app"
1112

1213
Installing
@@ -48,15 +49,15 @@ Will generate
4849

4950
```ruby
5051
task :server-2 do
51-
role :db, {server-2 public dns fetched from Amazon}
52+
role :db, {server-2 public or private IP, fetched from Brightbox}
5253
end
5354

5455
task :server-3 do
5556
role :db, {server-3 public dns fetched from Amazon}
5657
end
5758

5859
task :db do
59-
role :db, {server-2 public dns fetched from Amazon}
60+
role :db, {server-2 public or private IP, fetched from Brightbox}
6061
role :db, {server-3 public dns fetched from Amazon}
6162
end
6263
```
@@ -152,21 +153,30 @@ cloud_roles :name=>:app, :options=>{ :default => true }
152153

153154
would be the equivalent of 'cap app web deploy'
154155

155-
Ec2 config
156+
Cloud config
156157
====================================================
157158

158159
This gem requires 'config/cloud.yml' in your project.
159160
The yml file needs to look something like this:
160-
161+
161162
```ruby
162-
:aws_access_key_id: "YOUR ACCESS KEY"
163-
:aws_secret_access_key: "YOUR SECRET"
164-
:aws_params:
165-
:region: 'eu-west-1'
166-
:load_balanced: true
167-
:project_tag: "YOUR APP NAME"
163+
:cloud_providers: ['AWS', 'Brightbox']
164+
165+
:AWS:
166+
:aws_access_key_id: "YOUR ACCESS KEY"
167+
:aws_secret_access_key: "YOUR SECRET"
168+
:params:
169+
:region: 'eu-west-1'
170+
:load_balanced: true
171+
:project_tag: "YOUR APP NAME"
172+
173+
:Brightbox:
174+
:brightbox_client_id: "YOUR CLIENT ID"
175+
:brightbox_secret: "YOUR SECRET"
168176
```
169-
aws_access_key_id, aws_secret_access_key, and region are required. Other settings are optional.
177+
aws_access_key_id, aws_secret_access_key, and region are required for AWS. Other settings are optional.
178+
brightbox_client_id and brightbox_secret: are required for Brightbox.
179+
If you do not specify a cloud_provider, AWS is assumed.
170180

171181
If :load_balanced is set to true, the gem uses pre and post-deploy
172182
hooks to deregister the instance, reregister it, and validate its
@@ -179,8 +189,8 @@ running against those instances with a "Project" tag set to the value
179189

180190
## Development
181191

182-
Source hosted at [GitHub](http://github.com/forward/capify-cloud).
183-
Report Issues/Feature requests on [GitHub Issues](http://github.com/forward/capify-cloud/issues).
192+
Source hosted at [GitHub](http://github.com/ncantor/capify-cloud).
193+
Report Issues/Feature requests on [GitHub Issues](http://github.com/ncantor/capify-cloud/issues).
184194

185195
### Note on Patches/Pull Requests
186196

@@ -194,4 +204,4 @@ Report Issues/Feature requests on [GitHub Issues](http://github.com/forward/capi
194204

195205
## Copyright
196206

197-
Copyright (c) 2012 Forward. See [LICENSE](https://github.com/forward/capify-cloud/blob/master/LICENSE) for details.
207+
Original version: Copyright (c) 2012 Forward. See [LICENSE](https://github.com/ncantor/capify-cloud/blob/master/LICENSE) for details.

0 commit comments

Comments
 (0)