rvm-capistrano 1.4.0.rc2 → 1.4.0.rc3

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.
@@ -3,7 +3,7 @@ require 'rvm/capistrano/helpers/rvm_methods'
3
3
 
4
4
  rvm_with_capistrano do
5
5
 
6
- on :load do
6
+ deffered_load do
7
7
  _cset :rvm_shell do
8
8
  shell = File.join(rvm_bin_path, "rvm-shell")
9
9
  ruby = fetch(:rvm_ruby_string_evaluated).strip
@@ -66,7 +66,7 @@ rvm_with_capistrano do
66
66
 
67
67
  ## not needed in base but are used in many extensions
68
68
 
69
- on :load do
69
+ deffered_load do
70
70
  # Let users set the install shell of their choice
71
71
  _cset(:rvm_install_shell, :bash)
72
72
  end
@@ -2,7 +2,7 @@ require 'rvm/capistrano/base'
2
2
 
3
3
  rvm_with_capistrano do
4
4
 
5
- on :load do
5
+ deffered_load do
6
6
 
7
7
  # Let users configure a path to export/import gemsets
8
8
  _cset(:rvm_gemset_path, "#{rvm_path}/gemsets")
@@ -1,4 +1,13 @@
1
1
  module Capistrano
2
+ class Configuration
3
+ def deffered_load(&block)
4
+ if current_task
5
+ instance_eval(&block)
6
+ else
7
+ on(:load, &block)
8
+ end
9
+ end
10
+ end
2
11
  end
3
12
 
4
13
  def rvm_with_capistrano(&block)
@@ -2,7 +2,7 @@ require 'rvm/capistrano/base'
2
2
 
3
3
  rvm_with_capistrano do
4
4
 
5
- on :load do
5
+ deffered_load do
6
6
  # Default sudo state
7
7
  _cset(:rvm_install_with_sudo, false)
8
8
  end
@@ -4,7 +4,7 @@ rvm_with_capistrano do
4
4
 
5
5
  warn "task 'rvm:install_pkgs' is deprecated, please read about autolibs => http://rvm.io/rvm/autolibs especially check the autolibs mode 'rvm_pkg'."
6
6
 
7
- on :load do
7
+ deffered_load do
8
8
 
9
9
  # Additional rvm packages to install.
10
10
  _cset(:rvm_install_pkgs, [])
@@ -5,7 +5,7 @@ require 'rvm/capistrano/helpers/with_rvm_group'
5
5
 
6
6
  rvm_with_capistrano do
7
7
 
8
- on :load do
8
+ deffered_load do
9
9
 
10
10
  # Let users set the (re)install for ruby.
11
11
  _cset(:rvm_install_ruby, :install)
@@ -4,7 +4,7 @@ require 'rvm/capistrano/helpers/rvm_if_sudo'
4
4
 
5
5
  rvm_with_capistrano do
6
6
 
7
- on :load do
7
+ deffered_load do
8
8
 
9
9
  # Let users set the install type of their choice.
10
10
  _cset(:rvm_install_type, :stable)
@@ -1,7 +1,7 @@
1
1
  require 'rvm/capistrano/base'
2
2
 
3
3
  rvm_with_capistrano do
4
- on :load do
4
+ deffered_load do
5
5
 
6
6
  # conflicts with rvm/capistrano/selector_mixed
7
7
  unless fetch(:rvm_require_role,nil).nil?
@@ -1,5 +1,5 @@
1
1
  module RVM
2
2
  class Capistrano
3
- VERSION="1.4.0.rc2"
3
+ VERSION="1.4.0.rc3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- hash: 2304346973
4
+ hash: -1093037706
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
9
  - 0
10
10
  - rc
11
- - 2
12
- version: 1.4.0.rc2
11
+ - 3
12
+ version: 1.4.0.rc3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Wayne E. Seguin
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2013-07-01 00:00:00 Z
21
+ date: 2013-07-09 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: capistrano