Class: BuildApp

Inherits:
BaseCommand show all
Defined in:
lib/commands/build_app.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#all_commands, #empty?, #initialize

Constructor Details

This class inherits a constructor from BaseCommand

Instance Method Details

#after_commandObject



14
15
# File 'lib/commands/build_app.rb', line 14

def after_command
end

#before_commandObject

overriding base class methods



6
7
8
# File 'lib/commands/build_app.rb', line 6

def before_command
  "cd #{@params.source_root} && pod install" if cocoapods?
end

#log_fileObject



17
18
# File 'lib/commands/build_app.rb', line 17

def log_file
end

#main_commandObject



10
11
12
# File 'lib/commands/build_app.rb', line 10

def main_command
   "cd #{@params.source_root} && xcodebuild #{build_args} -sdk #{@params.architecture} -configuration #{@params.configuration} clean build CONFIGURATION_BUILD_DIR=#{build_dir}"
end