Module: Pulsar::Helpers::Path

Included in:
Clamp
Defined in:
lib/pulsar/helpers/path.rb

Instance Method Summary collapse

Instance Method Details

#capfile_pathObject



4
5
6
# File 'lib/pulsar/helpers/path.rb', line 4

def capfile_path
  @capfile_name ||= "#{tmp_dir}/capfile-#{time_to_deploy}"
end

#config_app_defaults_path(app) ⇒ Object



16
17
18
# File 'lib/pulsar/helpers/path.rb', line 16

def config_app_defaults_path(app)
  "#{config_app_path(app)}/defaults.rb"
end

#config_app_path(app) ⇒ Object



12
13
14
# File 'lib/pulsar/helpers/path.rb', line 12

def config_app_path(app)
  "#{config_apps_path}/#{app}"
end

#config_app_recipes_path(app) ⇒ Object



20
21
22
# File 'lib/pulsar/helpers/path.rb', line 20

def config_app_recipes_path(app)
  "#{config_app_path(app)}/recipes"
end

#config_app_stage_recipes_path(app, stage) ⇒ Object



24
25
26
# File 'lib/pulsar/helpers/path.rb', line 24

def config_app_stage_recipes_path(app, stage)
  "#{config_app_recipes_path(app)}/#{stage}"
end

#config_apps_pathObject



28
29
30
# File 'lib/pulsar/helpers/path.rb', line 28

def config_apps_path
  "#{config_path}/apps"
end

#config_base_pathObject



32
33
34
# File 'lib/pulsar/helpers/path.rb', line 32

def config_base_path
  "#{config_apps_path}/base.rb"
end

#config_pathObject



8
9
10
# File 'lib/pulsar/helpers/path.rb', line 8

def config_path
  @configuration_path ||= "#{tmp_dir}/conf-repo-#{time_to_deploy}"
end

#config_stage_path(app, stage) ⇒ Object



36
37
38
# File 'lib/pulsar/helpers/path.rb', line 36

def config_stage_path(app, stage)
  "#{config_app_path(app)}/#{stage}.rb"
end