Class: Wox::Builder

Inherits:
Task
  • Object
show all
Includes:
Environment
Defined in:
lib/wox/builder.rb

Instance Attribute Summary

Attributes included from Environment

#environment

Instance Method Summary collapse

Methods included from Environment

#initialize

Methods inherited from Task

#run_command

Instance Method Details

#buildObject

def initialize(environment); super end



6
7
8
9
10
11
12
13
# File 'lib/wox/builder.rb', line 6

def build
  configuration = environment[:configuration]
  puts "Building #{environment[:full_name]} configuration:#{configuration}"
  
  log_file = File.join environment[:build_dir], "build-#{configuration}.log"

  run_command "xcodebuild -target '#{environment[:target]}' -configuration #{configuration}", :results => log_file
end