recap 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  ## Documentation
15
15
 
16
- For more information, the main documentation can be found at [http://gofreerange.com/recap/docs](http://http://gofreerange.com/recap/docs).
16
+ For more information, the main documentation can be found at [http://gofreerange.com/recap/docs](http://gofreerange.com/recap/docs).
17
17
 
18
18
 
19
19
  ## Prerequistes
@@ -6,7 +6,6 @@ Feature: Managing processes with foreman
6
6
  When I run "cap deploy:setup deploy"
7
7
  Then the project should own the running application process
8
8
 
9
- @wip
10
9
  Scenario: Running processes can read environment variables
11
10
  Given a new ruby project and a bootstrapped server
12
11
  And the project has an application process defined in a Procfile
@@ -2,5 +2,7 @@
2
2
  # recipe, which provides support for both `bundler` and `foreman`.
3
3
  require 'recap/recipes/ruby'
4
4
 
5
- # It adds to this with a number of rails specific tasks.
5
+ # It adds to this with a number of rails specific tasks. See the
6
+ # [rails tasks](../tasks/rails.html) documentation for more information
7
+ # about the rails support.
6
8
  require 'recap/tasks/rails'
@@ -98,7 +98,7 @@ module Recap::Tasks::Env
98
98
 
99
99
  # Default environment values can be set by a recipe using `set_default_env :NAME, 'VALUE'`.
100
100
  def set_default_env(name, value)
101
- default_env[name] = value
101
+ default_env[name.to_s] = value
102
102
  end
103
103
 
104
104
  def default_env
@@ -0,0 +1,31 @@
1
+ # Recap doesn't yet provide any specific tools for multistage deployments
2
+ # (deploying to different servers for `production`, `staging`, `qa`, etc.),
3
+ # but you can still easily support them.
4
+ #
5
+ # The easiest way is to define your own task for each environment, and
6
+ # declare servers and other configuration within those tasks. For example,
7
+ # a `Capfile` targetting both a `staging` and `production` environment
8
+ # might look like this:
9
+ #
10
+ # <pre>
11
+ # require 'recap/recipes/rails'
12
+ #
13
+ # set :application, 'blanche'
14
+ # set :repository, 'git@github.com:tomafro/blanche'
15
+ #
16
+ # task :staging do
17
+ # server 'staging.example.com', :app
18
+ # end
19
+ #
20
+ # task :production do
21
+ # set :branch, 'production'
22
+ # server 'production.example.com', :app
23
+ # end
24
+ # </pre>
25
+ #
26
+ # The two environments deploy to different servers, and the production
27
+ # environment deploys the `production` branch of code, rather than
28
+ # the default (which is `master`).
29
+ #
30
+ # To run tasks against each environment, simply call the environment
31
+ # task first, i.e. `cap staging deploy`, or `cap production bootstrap`.
@@ -1,4 +1,4 @@
1
- # The rails tasks add to the standard deployment with tasks to support running
1
+ # The rails tasks build on standard deployment with support for running
2
2
  # database migrations and precompiling assets.
3
3
 
4
4
  require 'recap/tasks'
@@ -7,6 +7,14 @@ module Recap::Tasks::Rails
7
7
  extend Recap::Support::Namespace
8
8
 
9
9
  namespace :rails do
10
+ # In traditional capistrano deployments, there's a configuration variable
11
+ # `rails_env` to declare the rails environment. Recap prefers using
12
+ # environment variables for things like this, and rails handily supports
13
+ # the `RAILS_ENV` variable. As a default, `RAILS_ENV` is set to
14
+ # `production`, but this can be changed using the `env:set` or
15
+ # `env:edit` tasks.
16
+ set_default_env :RAILS_ENV, 'production'
17
+
10
18
  namespace :db do
11
19
  task :load_schema do
12
20
  if deployed_file_exists?("db/schema.rb")
data/lib/recap/tasks.rb CHANGED
@@ -9,6 +9,9 @@
9
9
  # In addition, there are extensions for [bundler](tasks/bundler.html),
10
10
  # [foreman](tasks/foreman.html), and [rails](tasks/rails.html) that add extra
11
11
  # functionality to the standard deploy.
12
+ #
13
+ # Finally, while there's no explicit support, it's still very easy to use recap for
14
+ # [multistage deployments](tasks/multistage.html).
12
15
 
13
16
  require 'recap'
14
17
 
data/lib/recap/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Recap
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-04 00:00:00.000000000 Z
12
+ date: 2012-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70324670503420 !ruby/object:Gem::Requirement
16
+ requirement: &70327677818480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.9.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70324670503420
24
+ version_requirements: *70327677818480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70324670502720 !ruby/object:Gem::Requirement
27
+ requirement: &70327677817900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70324670502720
35
+ version_requirements: *70327677817900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: open4
38
- requirement: &70324670502040 !ruby/object:Gem::Requirement
38
+ requirement: &70327677817200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70324670502040
46
+ version_requirements: *70327677817200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70324670501360 !ruby/object:Gem::Requirement
49
+ requirement: &70327677816440 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.9.2
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70324670501360
57
+ version_requirements: *70327677816440
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: fl-rocco
60
- requirement: &70324670500560 !ruby/object:Gem::Requirement
60
+ requirement: &70327677815640 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70324670500560
68
+ version_requirements: *70327677815640
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: &70324670499800 !ruby/object:Gem::Requirement
71
+ requirement: &70327677814940 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 2.7.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70324670499800
79
+ version_requirements: *70327677814940
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: mocha
82
- requirement: &70324670499120 !ruby/object:Gem::Requirement
82
+ requirement: &70327677814100 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.10.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70324670499120
90
+ version_requirements: *70327677814100
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: vagrant
93
- requirement: &70324670498340 !ruby/object:Gem::Requirement
93
+ requirement: &70327677812740 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.9.7
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70324670498340
101
+ version_requirements: *70327677812740
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: sahara
104
- requirement: &70324670496780 !ruby/object:Gem::Requirement
104
+ requirement: &70327677811560 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.0.10
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70324670496780
112
+ version_requirements: *70327677811560
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: cucumber
115
- requirement: &70324670495880 !ruby/object:Gem::Requirement
115
+ requirement: &70327677810520 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.1.4
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70324670495880
123
+ version_requirements: *70327677810520
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: faker
126
- requirement: &70324670494660 !ruby/object:Gem::Requirement
126
+ requirement: &70327677809600 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: 1.0.1
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70324670494660
134
+ version_requirements: *70327677809600
135
135
  description: GIT based deployment recipes for Capistrano
136
136
  email:
137
137
  - tom@popdog.net
@@ -179,6 +179,7 @@ files:
179
179
  - lib/recap/tasks/deploy.rb
180
180
  - lib/recap/tasks/env.rb
181
181
  - lib/recap/tasks/foreman.rb
182
+ - lib/recap/tasks/multistage.rb
182
183
  - lib/recap/tasks/preflight.rb
183
184
  - lib/recap/tasks/rails.rb
184
185
  - lib/recap/version.rb
@@ -210,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
211
  version: '0'
211
212
  segments:
212
213
  - 0
213
- hash: -940325068709851558
214
+ hash: 3803834817478343414
214
215
  required_rubygems_version: !ruby/object:Gem::Requirement
215
216
  none: false
216
217
  requirements:
@@ -219,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
220
  version: '0'
220
221
  segments:
221
222
  - 0
222
- hash: -940325068709851558
223
+ hash: 3803834817478343414
223
224
  requirements: []
224
225
  rubyforge_project:
225
226
  rubygems_version: 1.8.11