module Shuttle::PathHelpers

Public Instance Methods

current_path(path=nil) click to toggle source

Get current release (symlinked) path @return [String]

# File lib/shuttle/path_helpers.rb, line 23
def current_path(path=nil)
  [deploy_path, 'current', path].compact.join('/')
end
deploy_path(path=nil) click to toggle source

Get deployment root path, everything is based from here @return [String]

# File lib/shuttle/path_helpers.rb, line 5
def deploy_path(path=nil)
  [target.deploy_to, path].compact.join('/')
end
release_path(path=nil) click to toggle source

Get path to currently used release @return [String]

# File lib/shuttle/path_helpers.rb, line 17
def release_path(path=nil)
  [deploy_path, 'releases', version, path].compact.join('/')
end
scm_path() click to toggle source

Get path to where repository code is stored @return [String]

# File lib/shuttle/path_helpers.rb, line 35
def scm_path
  deploy_path('scm')
end
shared_path(path=nil) click to toggle source

Get shared path between releases @return [String]

# File lib/shuttle/path_helpers.rb, line 11
def shared_path(path=nil)
  [deploy_path, 'shared', path].compact.join('/')
end
version_path() click to toggle source

Get path to release version file @return [String]

# File lib/shuttle/path_helpers.rb, line 29
def version_path
  deploy_path('version')
end