Module: Capistrano::DSL::Paths

Defined in:
lib/capistrano/dsl/paths.rb

Instance Method Summary collapse

Instance Method Details

#build_dirObject



7
8
9
# File 'lib/capistrano/dsl/paths.rb', line 7

def build_dir
  fetch(:build_dir)
end

#build_pathObject

directory within which the build is to be executed respects relative paths (not starting with /)



13
14
15
16
17
# File 'lib/capistrano/dsl/paths.rb', line 13

def build_path
  return deploy_path.join(fetch(:current_directory, 'current')) if build_dir.nil?
  return Pathname.new(build_dir.strip) if build_dir.strip[0] == '/'
  return deploy_path.join(fetch(:current_directory, 'current'), build_dir)
end