Class: Ambient::Application
- Inherits:
-
Object
- Object
- Ambient::Application
- Defined in:
- lib/ambient/application.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #configure(&block) ⇒ Object
-
#initialize(path = nil) ⇒ Application
constructor
A new instance of Application.
- #run_ambientfile(file = nil) ⇒ Object
Constructor Details
#initialize(path = nil) ⇒ Application
Returns a new instance of Application.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ambient/application.rb', line 5 def initialize(path = nil) @path = path || Dir.pwd @use_defaults = false @project_options = {} @shared_target_options = {} @target_options = {} @scheme_options = {} @parents = {} @capabilities = {} @development_teams = {} end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/ambient/application.rb', line 3 def path @path end |
Instance Method Details
#configure(&block) ⇒ Object
22 23 24 |
# File 'lib/ambient/application.rb', line 22 def configure(&block) instance_eval(&block) end |
#run_ambientfile(file = nil) ⇒ Object
18 19 20 |
# File 'lib/ambient/application.rb', line 18 def run_ambientfile(file = nil) setup_project(file || "Ambientfile") end |