Class: Tug::XCTool
- Inherits:
-
Object
show all
- Defined in:
- lib/tug/tool/xctool.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ XCTool
17
18
19
|
# File 'lib/tug/tool/xctool.rb', line 17
def initialize(config)
@config = config
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
4
5
6
|
# File 'lib/tug/tool/xctool.rb', line 4
def config
@config
end
|
Class Method Details
7
8
9
10
11
12
13
14
|
# File 'lib/tug/tool/xctool.rb', line 7
def tool_for_config(config)
case config.downcase
when "inhouse", "release", /release/, /inhouse/
Tug::XCToolArchive.new(config)
else
Tug::XCToolBuild.new(config)
end
end
|
Instance Method Details
#build(workspace, scheme) ⇒ Object
21
22
23
|
# File 'lib/tug/tool/xctool.rb', line 21
def build(workspace, scheme)
system("xctool #{build_options(workspace, scheme)}")
end
|