Class: Ambient::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/ambient/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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