Class: Tug::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/tug/project/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Project

Returns a new instance of Project.



9
10
11
12
13
14
# File 'lib/tug/project/project.rb', line 9

def initialize(config)
  project_yaml      = config['project']
  @schemes          = project_yaml['schemes']
  @workspace        = project_yaml['workspace']
  @ipa_export_path  = Dir.pwd
end

Instance Attribute Details

#ipa_configObject

Returns the value of attribute ipa_config.



6
7
8
# File 'lib/tug/project/project.rb', line 6

def ipa_config
  @ipa_config
end

#ipa_export_pathObject

Returns the value of attribute ipa_export_path.



7
8
9
# File 'lib/tug/project/project.rb', line 7

def ipa_export_path
  @ipa_export_path
end

#schemesObject (readonly)

Returns the value of attribute schemes.



4
5
6
# File 'lib/tug/project/project.rb', line 4

def schemes
  @schemes
end

#workspaceObject (readonly)

Returns the value of attribute workspace.



5
6
7
# File 'lib/tug/project/project.rb', line 5

def workspace
  @workspace
end

Instance Method Details

#configure(options) ⇒ Object



16
17
18
19
# File 'lib/tug/project/project.rb', line 16

def configure(options)
  @ipa_export_path = options["export"]
  @ipa_config = options["build_config"]
end