rain 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -17
- data/lib/generators/rain/install/install_generator.rb +1 -1
- data/lib/rain/capistrano.rb +2 -2
- data/lib/rain/deployer.rb +1 -1
- data/lib/rain/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8819b952357c7b24f793648dfa47c3db80d87667
|
4
|
+
data.tar.gz: d94d0b6e4ab6396287d20f247800c5e451ca5216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72aa56629922194240ba1b2f2a0cdf59e1e1851be510063edb3a9df6a3510f7166bf141bfdb1a849d2fb217a31edace7d9d9305c76e43ed468d6208f84db7c3f
|
7
|
+
data.tar.gz: eda72492b9692f74c402d4f39cc6423ed1f2b6d277388c5384844a756a68913d761578718469313c46ff196a44b6f9404cb23d4b638bc26de3eed6e77bb6fe73
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ continuous deployment between teams more organized and therefore, more
|
|
8
8
|
effective.
|
9
9
|
|
10
10
|
Designed for [eLocal](http://elocal.com), it is
|
11
|
-
currently in production use on several of our large applications.
|
11
|
+
currently in production use on several of our large applications.
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -52,22 +52,7 @@ testing new changes on a real server, with real API calls, and the
|
|
52
52
|
**production** environment which is where your application can be
|
53
53
|
interacted with by its userbase.
|
54
54
|
|
55
|
-
You need a `
|
56
|
-
**config/deploy.rb** for whatever environment you wish to deploy. The Rails environment, task and environment in the versions.yml file must be the same name. This task will tell Capistrano which servers to deploy to before it runs its `deploy` task. It basically configures Capistrano on a per-environment basis.
|
57
|
-
|
58
|
-
Here's what one of your `to_env` tasks might like:
|
59
|
-
|
60
|
-
```ruby
|
61
|
-
desc "Let's gooooooooooooo"
|
62
|
-
task :to_production do
|
63
|
-
set :user, "bruce"
|
64
|
-
set :rails_env, "production"
|
65
|
-
|
66
|
-
role :web, "www.elocal.com"
|
67
|
-
role :app, "dyno.elocal.com"
|
68
|
-
role :db, "production.db.elocal.com", primary: true
|
69
|
-
end
|
70
|
-
```
|
55
|
+
You need a `staging` and `production` stages, or whatever stages you wish to deploy. The Rails environment, task and environment in the versions.yml file must be the same name. This task will tell Capistrano which servers to deploy to before it runs its `deploy` task. It basically configures Capistrano on a per-environment basis.
|
71
56
|
|
72
57
|
### Deploying
|
73
58
|
|
@@ -10,7 +10,7 @@ module Rain
|
|
10
10
|
say <<-TEXT
|
11
11
|
|
12
12
|
Please add `require 'rain/capistrano'` to Capfile and
|
13
|
-
define your
|
13
|
+
define your stages in config/deploy
|
14
14
|
|
15
15
|
Then, all you have to do to deploy to all of your servers is
|
16
16
|
|
data/lib/rain/capistrano.rb
CHANGED
@@ -12,8 +12,8 @@ require 'rain/git_tools'
|
|
12
12
|
|
13
13
|
module Rain
|
14
14
|
Capistrano::Configuration.instance(:must_exist).load do
|
15
|
-
after "
|
16
|
-
after "
|
15
|
+
after "staging", "to_latest_tag"
|
16
|
+
after "production", "to_latest_tag"
|
17
17
|
|
18
18
|
task :to_latest_tag do
|
19
19
|
set :branch, GitTools::ReleaseTag.current(rails_env)
|
data/lib/rain/deployer.rb
CHANGED
@@ -26,7 +26,7 @@ module Rain
|
|
26
26
|
say "Deploying existing tag #{GitTools::ReleaseTag.current("stage")} to '#{environment}'."
|
27
27
|
end
|
28
28
|
|
29
|
-
run_cmd "bundle exec cap
|
29
|
+
run_cmd "bundle exec cap #{environment} deploy"
|
30
30
|
|
31
31
|
say "Got a handful of stacks better grab an umbrella."
|
32
32
|
end
|
data/lib/rain/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Scott
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|