Class: Potemkin::IosBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/potemkin/builder/ios.rb

Instance Method Summary collapse

Methods inherited from Builder

#build, #clean, #config, #env_vars, #logger, #with_env_vars

Instance Method Details

#build_commandObject

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_commandObject



16
17
18
# File 'lib/potemkin/builder/ios.rb', line 16

def clean_command
  "#{build_command} clean"
end

#xcodebuild_pathObject



20
21
22
# File 'lib/potemkin/builder/ios.rb', line 20

def xcodebuild_path
  "/usr/bin/xcodebuild"
end