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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87256ba4f8837766f81c8a4f6c6c0e490d698a09
4
- data.tar.gz: 143196780cc2ef709801f3e3f7d2ea8cd08dbbfe
3
+ metadata.gz: 8819b952357c7b24f793648dfa47c3db80d87667
4
+ data.tar.gz: d94d0b6e4ab6396287d20f247800c5e451ca5216
5
5
  SHA512:
6
- metadata.gz: d36fd7e8aa4b2b163072b23d926c3087935d69d0c0987d2860d29f5ffbf38ed83df90ebc1f020bc5778eb427df48ba0b9ce81e830b2e9b9609111f596ccc5990
7
- data.tar.gz: 5e315e76fd89b725d6b28a528718e601bed7ce7f7b32685e1e3c8320c46781352c950405c0b07e8d0044d8564920de0abff63a2aaf656881d2396b417171ca0c
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 `to_stage` and `to_production` task in your
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 :to_stage and :to_production tasks in config/deploy.rb.
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
 
@@ -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 "to_stage", "to_latest_tag"
16
- after "to_production", "to_latest_tag"
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)
@@ -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 to_#{environment} deploy"
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
@@ -1,3 +1,3 @@
1
1
  module Rain
2
- VERSION = "1.0.8"
2
+ VERSION = '1.0.9'
3
3
  end
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.8
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-05-15 00:00:00.000000000 Z
12
+ date: 2014-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor