Class: FluentCommandBuilder::XCodeBuild::V45::XCodeBuild

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/xcodebuild_45.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ XCodeBuild

Returns a new instance of XCodeBuild.



25
26
27
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 25

def initialize(underlying_builder)
  super underlying_builder
end

Instance Method Details

#build_project(build_action = nil) ⇒ Object



28
29
30
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 28

def build_project(build_action=nil)
  BuildProject.new @b, build_action
end

#build_project_scheme(build_action = nil) ⇒ Object



31
32
33
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 31

def build_project_scheme(build_action=nil)
  BuildProjectScheme.new @b, build_action
end

#build_workspace(workspace_name, build_action = nil) ⇒ Object



34
35
36
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 34

def build_workspace(workspace_name, build_action=nil)
  BuildWorkspace.new @b, workspace_name, build_action
end

#find_executable(name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


55
56
57
58
59
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 55

def find_executable(name)
  @b.append " -find-executable #{@b.format name}"
  yield @b if block_given?
  self
end

#find_library(name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


60
61
62
63
64
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 60

def find_library(name)
  @b.append " -find-library #{@b.format name}"
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


65
66
67
68
69
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 65

def help
  @b.append ' -help'
  yield @b if block_given?
  self
end

#license {|@b| ... } ⇒ Object

Yields:

  • (@b)


70
71
72
73
74
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 70

def license
  @b.append ' -license'
  yield @b if block_given?
  self
end

#list {|@b| ... } ⇒ Object

Yields:

  • (@b)


40
41
42
43
44
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 40

def list
  @b.append ' -list'
  yield @b if block_given?
  self
end

#list_project(project_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


45
46
47
48
49
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 45

def list_project(project_name)
  @b.append " -list -project #{@b.format project_name}"
  yield @b if block_given?
  self
end

#list_workspace(workspace_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


50
51
52
53
54
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 50

def list_workspace(workspace_name)
  @b.append " -list -workspace #{@b.format workspace_name}"
  yield @b if block_given?
  self
end

#show_sdks {|@b| ... } ⇒ Object

Yields:

  • (@b)


75
76
77
78
79
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 75

def show_sdks
  @b.append ' -showsdks'
  yield @b if block_given?
  self
end

#usage {|@b| ... } ⇒ Object

Yields:

  • (@b)


80
81
82
83
84
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 80

def usage
  @b.append ' -usage'
  yield @b if block_given?
  self
end

#versionObject



37
38
39
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 37

def version
  Version.new @b
end