Class: Potemkin::IosBuilder
- Defined in:
- lib/potemkin/builder/ios.rb
Instance Method Summary collapse
-
#build_command ⇒ Object
Returns the command to be executed to build This command should be run in the root of the project dir.
- #clean_command ⇒ Object
- #xcodebuild_path ⇒ Object
Methods inherited from Builder
#build, #clean, #config, #env_vars, #logger, #with_env_vars
Instance Method Details
#build_command ⇒ Object
Returns the command to be executed to build This command should be run in the root of the project dir
6 7 8 9 10 11 12 13 14 |
# File 'lib/potemkin/builder/ios.rb', line 6 def build_command args = { "target" => config.target, "configuration" => config.configuration, "project" => config.project_path }.collect{|k,v| "-#{k} '#{v}'"}.join(" ") "#{xcodebuild_path} #{args}" end |
#clean_command ⇒ Object
16 17 18 |
# File 'lib/potemkin/builder/ios.rb', line 16 def clean_command "#{build_command} clean" end |
#xcodebuild_path ⇒ Object
20 21 22 |
# File 'lib/potemkin/builder/ios.rb', line 20 def xcodebuild_path "/usr/bin/xcodebuild" end |