Module: EY::Serverside::Paths::LegacyHelpers

Included in:
Deploy::Configuration
Defined in:
lib/engineyard-serverside/paths.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.legacy_path_helper(name, new_name) ⇒ Object


8
9
10
11
12
# File 'lib/engineyard-serverside/paths.rb', line 8

def self.legacy_path_helper(name, new_name)
  define_method(name) do |*a|
    paths.send(new_name, *a).to_s
  end
end

Instance Method Details

#all_releasesObject


31
32
33
34
# File 'lib/engineyard-serverside/paths.rb', line 31

def all_releases
  EY::Serverside.deprecation_warning("config.all_releases is deprecated. Please use 'config.paths.all_releases' which returns Pathname objects.")
  paths.all_releases.map {|path| path.to_s }
end