capistrano-scalr 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -15,13 +15,23 @@ After gem installation, add the following to your deploy.rb:
15
15
  set :gateway_type, "<centos|ubuntu>"
16
16
  require 'capistrano-scalr'
17
17
 
18
- The above will automatically connect to your scalr farm using the gateway you specify (the primary database server is a logical choice, since it usually stays pretty static), enumerate the instances in your farm, then create the following roles with the scalr hosts contained within:
19
-
20
- - lb
21
- - web
22
- - app
23
- - db
24
- - memcached
18
+ The above will automatically connect to your scalr farm using the gateway you specify (the primary database server is a logical choice, since it usually stays pretty static), enumerate the instances in your farm, and populate the `scalr_hosts` array with the instances. You can then define roles based on `scalr_hosts`:
19
+
20
+ role :lb, :no_release => true do
21
+ scalr_hosts['loadbalancer']
22
+ end
23
+ role :web, :no_release => true do
24
+ scalr_hosts['www']
25
+ end
26
+ role :app do
27
+ scalr_hosts['app']
28
+ end
29
+ role :db, :no_release => true do
30
+ scalr_hosts['mysql']
31
+ end
32
+ role :memcached, :no_release => true do
33
+ scalr_hosts['memcached']
34
+ end
25
35
 
26
36
  I also recommend that you use ssh-agent on your development workstation, enable agent forwarding on your scalr hosts, and set this in deploy.rb:
27
37
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Scalr
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
10
10
  platform: ruby
11
11
  authors: []
12
12