class Luban::Deployment::Helpers::Configuration::Finder::Application

Attributes

profile_templates_path[R]
stage_profile_path[R]
stage_profile_templates_path[R]

Public Instance Methods

base_path() click to toggle source
# File lib/luban/deployment/helpers/configuration.rb, line 105
def base_path; base_path ||= target.apps_path.join(target.application); end
find_template_file(file_name) click to toggle source
# File lib/luban/deployment/helpers/configuration.rb, line 113
def find_template_file(file_name)
  return file_path if (file_path = stage_profile_templates_path.join(file_name)).file?
  return file_path if (file_path = profile_templates_path.join(file_name)).file?
  super
end
has_profile?() click to toggle source
# File lib/luban/deployment/helpers/configuration.rb, line 107
def has_profile?
  !Dir["#{stage_profile_templates_path}/**/*"].empty? or
  !Dir["#{stage_profile_path}/**/*"].empty? or
  !Dir["#{profile_templates_path}/**/*"].empty?
end

Protected Instance Methods

set_config_paths() click to toggle source
# File lib/luban/deployment/helpers/configuration.rb, line 121
def set_config_paths
  super
  @profile_templates_path = @templates_path.join('profile')
  @stage_profile_path = @stage_config_path.join('profile')
  @stage_profile_templates_path = @stage_templates_path.join('profile')
end