class Giblish::DeploymentPaths

returns the paths to the search assets and web assets in the deployment machine's file system.

Attributes

search_assets_path[W]
web_path[R]

Public Class Methods

new(web_path, search_asset_path) click to toggle source
# File lib/giblish/utils.rb, line 94
def initialize(web_path, search_asset_path)
  @search_assets_path = if search_asset_path.nil?
                          nil
                        else
                          Pathname.new("/#{search_asset_path}").cleanpath
                        end
  @web_path = if web_path.nil?
                nil
              else
                Pathname.new("/#{web_path}/web_assets").cleanpath
              end
end

Public Instance Methods

search_assets_path(branch_dir = nil) click to toggle source
# File lib/giblish/utils.rb, line 107
def search_assets_path(branch_dir = nil)
  if branch_dir.nil?
    @search_assets_path
  else
    @search_assets_path.join(branch_dir)
  end
end