class Tug::Command
Public Class Methods
command_for_string(command_string)
click to toggle source
# File lib/tug/command/command.rb, line 5 def command_for_string(command_string) case command_string when "build" Tug::BuildCommand.new when "ipa" Tug::IpaCommand.new when "provision" Tug::ProvisionCommand.new when "deploy" Tug::DeployCommand.new else Tug::Command.new end end
Public Instance Methods
execute(config_file)
click to toggle source
# File lib/tug/command/command.rb, line 21 def execute(config_file) project = config_file.project @build_tool = build_tool(project.ipa_config) project.schemes.each do |scheme| @build_tool.build(project.workspace, scheme) end end
Private Instance Methods
build_tool(config)
click to toggle source
# File lib/tug/command/command.rb, line 31 def build_tool(config) build_tool = Tug::BuildTool.tool_for_config(config) end