Class: Mamiya::Configuration
Instance Attribute Summary
Attributes inherited from DSL
Instance Method Summary collapse
-
#deploy_to_for(app) ⇒ Object
XXX: ‘config.app(app_name).deploy_to` form is better?.
- #packages_dir ⇒ Object
- #prereleases_dir ⇒ Object
- #storage_class ⇒ Object
Methods inherited from DSL
#[], add_hook, defaults, define_variable_accessor, #evaluate!, #initialize, #invoke, #load!, #load_path, #set, set_default, #set_default, #task, #use
Constructor Details
This class inherits a constructor from Mamiya::DSL
Instance Method Details
#deploy_to_for(app) ⇒ Object
XXX: ‘config.app(app_name).deploy_to` form is better?
55 56 57 58 59 |
# File 'lib/mamiya/configuration.rb', line 55 def deploy_to_for(app) # XXX: to_sym application = applications[app.to_sym] || applications[app.to_s] application && application[:deploy_to] && Pathname.new(application[:deploy_to]) end |
#packages_dir ⇒ Object
46 47 48 |
# File 'lib/mamiya/configuration.rb', line 46 def packages_dir self[:packages_dir] && Pathname.new(self[:packages_dir]) end |
#prereleases_dir ⇒ Object
50 51 52 |
# File 'lib/mamiya/configuration.rb', line 50 def prereleases_dir self[:prereleases_dir] && Pathname.new(self[:prereleases_dir]) end |