youthtree-capistrano 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  module YouthTree
2
2
  module Capistrano
3
- VERSION = "0.0.6".freeze
3
+ VERSION = "0.1.0".freeze
4
4
 
5
5
  def self.load(&blk)
6
6
  ::Capistrano::Configuration.instance(:must_exist).load(&blk)
@@ -21,10 +21,18 @@ YouthTree::Capistrano.load do
21
21
  run "rm -rf '#{to}' && ln -s '#{from}' '#{to}'"
22
22
  end
23
23
 
24
- yt_cset :rails_env, "staging"
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 }
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{youthtree-capistrano}
8
- s.version = "0.0.6"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darcy Laycock"]
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: 19
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 6
10
- version: 0.0.6
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darcy Laycock