Sha256: 6ca6c39bf213532a82f706028edc1e2fd16a960c3e50c4245a60a2ff48b6db8b

Contents?: true

Size: 412 Bytes

Versions: 9

Compression:

Stored size: 412 Bytes

Contents

module Capistrano
  class Configuration
    def deferred_load(&block)
      if current_task
        instance_eval(&block)
      else
        on(:load, &block)
      end
    end
  end
end

def rvm_with_capistrano(&block)
  if Capistrano.const_defined?(:Configuration) &&
      Capistrano::Configuration.methods.map(&:to_sym).include?(:instance)
    Capistrano::Configuration.instance(true).load(&block)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rvm-capistrano-1.5.6 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.5 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.4 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.3 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.2 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.1 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.0 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.5.0.rc1 lib/rvm/capistrano/helpers/base.rb
rvm-capistrano-1.4.4 lib/rvm/capistrano/helpers/base.rb