youthtree-capistrano 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/youthtree/capistrano.rb +1 -1
- data/lib/youthtree/recipes/base.rb +9 -1
- data/youthtree-capistrano.gemspec +1 -1
- metadata +3 -3
data/lib/youthtree/capistrano.rb
CHANGED
@@ -21,10 +21,18 @@ YouthTree::Capistrano.load do
|
|
21
21
|
run "rm -rf '#{to}' && ln -s '#{from}' '#{to}'"
|
22
22
|
end
|
23
23
|
|
24
|
-
|
24
|
+
%w(staging production).each do |env_name|
|
25
|
+
task env_name.to_sym do
|
26
|
+
puts "** Switching Rails Env to #{env_name} **"
|
27
|
+
set :rails_env, env_name
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
yt_cset :default_stage, "staging"
|
25
32
|
yt_cset :use_sudo, false
|
26
33
|
yt_cset :keep_releases, 10
|
27
34
|
|
35
|
+
yt_cset(:rails_env) { default_stage }
|
28
36
|
yt_cset(:application) { raise "Please Ensure you set the application name." }
|
29
37
|
yt_cset(:user) { application }
|
30
38
|
yt_cset(:runner) { user }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: youthtree-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.6
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Darcy Laycock
|