Module: Pulsar::Helpers::Path
- Included in:
- Clamp
- Defined in:
- lib/pulsar/helpers/path.rb
Instance Method Summary collapse
- #bundle_path ⇒ Object
- #capfile_path ⇒ Object
- #config_app_defaults_path(app) ⇒ Object
- #config_app_path(app) ⇒ Object
- #config_app_recipes_path(app) ⇒ Object
- #config_app_stage_recipes_path(app, stage) ⇒ Object
- #config_apps_path ⇒ Object
- #config_base_path ⇒ Object
- #config_path ⇒ Object
- #config_stage_path(app, stage) ⇒ Object
- #home_path ⇒ Object
- #reset_capfile_path! ⇒ Object
- #tmp_path ⇒ Object
Instance Method Details
#bundle_path ⇒ Object
48 49 50 |
# File 'lib/pulsar/helpers/path.rb', line 48 def bundle_path File.join(home_path, 'bundle') end |
#capfile_path ⇒ Object
4 5 6 |
# File 'lib/pulsar/helpers/path.rb', line 4 def capfile_path "#{tmp_path}/capfile-#{deploy_time}" 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_path ⇒ Object
28 29 30 |
# File 'lib/pulsar/helpers/path.rb', line 28 def config_apps_path "#{config_path}/apps" end |
#config_base_path ⇒ Object
32 33 34 |
# File 'lib/pulsar/helpers/path.rb', line 32 def config_base_path "#{config_apps_path}/base.rb" end |
#config_path ⇒ Object
8 9 10 |
# File 'lib/pulsar/helpers/path.rb', line 8 def config_path "#{tmp_path}/conf-repo-#{setup_time}" 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 |
#home_path ⇒ Object
44 45 46 |
# File 'lib/pulsar/helpers/path.rb', line 44 def home_path home_dir end |
#reset_capfile_path! ⇒ Object
40 41 42 |
# File 'lib/pulsar/helpers/path.rb', line 40 def reset_capfile_path! clear_deploy_time end |
#tmp_path ⇒ Object
52 53 54 |
# File 'lib/pulsar/helpers/path.rb', line 52 def tmp_path File.join(home_path, 'tmp') end |