capistrano-af83 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/capistrano/af83/stages.rb +14 -3
- data/lib/capistrano/af83/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e0b7e1d8a9f6e6ace8f08b813b030a212bf296a
|
4
|
+
data.tar.gz: 8f5cd28e1894b917cd6ca1f3a33cdfff377c3906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46922254eed3da26b12b00225a61e406829cebfc15dafc732a20b1bbc0ffc260c295d27f818a45f4de13c7b5763c66daf24ee86745fb5760be67eb526775fa04
|
7
|
+
data.tar.gz: ae9effdcd4370786c4cd560002dde1fa12bae4a556a7658d9a8ef3306bb52580b02c96373cadd1c9c7aaefc18b8c97b942a9863eb5d51c794fae61762975598c
|
data/README.md
CHANGED
@@ -31,6 +31,12 @@ cap dev deploy:check
|
|
31
31
|
cap dev deploy
|
32
32
|
```
|
33
33
|
|
34
|
+
It's possible to deploy a topic branch with this command:
|
35
|
+
|
36
|
+
```sh
|
37
|
+
cap dev deploy -s branch=my_topic_branch
|
38
|
+
```
|
39
|
+
|
34
40
|
|
35
41
|
Capistrano extensions
|
36
42
|
---------------------
|
@@ -57,6 +63,7 @@ Environments
|
|
57
63
|
| N/A | test | master | localhost/jenkins |
|
58
64
|
| dev | dev | master | dev.{project}.af83.com |
|
59
65
|
| staging | staging | staging | staging.{project}.af83.com |
|
66
|
+
| preprod | preprod | preprod | rc.{project}.com |
|
60
67
|
| prod | production | production | {project}.com |
|
61
68
|
+-----------+-------------+------------+----------------------------+
|
62
69
|
|
@@ -3,17 +3,19 @@
|
|
3
3
|
# By default, we have 3 stages (dev, staging and production)
|
4
4
|
# and we detect other stages if they have a file in `config/deploy/*`.
|
5
5
|
set :default_stage, :dev
|
6
|
-
default_stages = [default_stage, :staging, :prod]
|
6
|
+
default_stages = [default_stage, :staging, :preprod, :prod]
|
7
7
|
location = fetch(:stage_dir, "config/deploy")
|
8
8
|
unless exists?(:stages)
|
9
9
|
set :stages, Dir["#{location}/*.rb"].map { |f| File.basename(f, ".rb") }
|
10
10
|
end
|
11
11
|
set :stages, stages.map(&:to_sym)
|
12
12
|
|
13
|
+
# You can deploy a topic branch on dev with
|
14
|
+
# cap dev deploy -s branch=my_topic_branch
|
13
15
|
desc "Set the target stage to `dev'."
|
14
16
|
task :dev do
|
15
17
|
set :stage, :dev
|
16
|
-
set :branch, :master
|
18
|
+
set :branch, exists?(:branch) ? branch : :master
|
17
19
|
set :rails_env, :dev
|
18
20
|
set(:default_environment) { { "RAILS_ENV" => rails_env } }
|
19
21
|
load "#{location}/#{stage}" if File.exists?("#{location}/#{stage}.rb")
|
@@ -23,13 +25,22 @@ end
|
|
23
25
|
desc "Set the target stage to `staging'."
|
24
26
|
task :staging do
|
25
27
|
set :stage, :staging
|
26
|
-
set :branch, :staging
|
28
|
+
set :branch, exists?(:branch) ? branch : :staging
|
27
29
|
set :rails_env, :staging
|
28
30
|
set(:default_environment) { { "RAILS_ENV" => rails_env } }
|
29
31
|
load "#{location}/#{stage}" if File.exists?("#{location}/#{stage}.rb")
|
30
32
|
server "#{user}@#{application}", :app, :web, :db, :primary => true
|
31
33
|
end
|
32
34
|
|
35
|
+
desc "Set the target stage to `preprod'."
|
36
|
+
task :preprod do
|
37
|
+
set :stage, :preprod
|
38
|
+
set :branch, exists?(:branch) ? branch : :preprod
|
39
|
+
set :rails_env, :preprod
|
40
|
+
set(:default_environment) { { "RAILS_ENV" => rails_env } }
|
41
|
+
load "#{location}/#{stage}"
|
42
|
+
end
|
43
|
+
|
33
44
|
desc "Set the target stage to `prod'."
|
34
45
|
task :prod do
|
35
46
|
set :stage, :prod
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-af83
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Michel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.2.
|
137
|
+
rubygems_version: 2.2.2
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Capistrano recipes for af83
|