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

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, build_action = nil) ⇒ BuildProject

Returns a new instance of BuildProject.



86
87
88
89
90
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 86

def initialize(underlying_builder, build_action=nil)
  super underlying_builder
  @b.append ' '
  @b.append "#{@b.format build_action, ' '}" unless build_action.nil?
end

Instance Method Details

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

Yields:

  • (@b)


91
92
93
94
95
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 91

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

#architecture(architecture) {|@b| ... } ⇒ Object

Yields:

  • (@b)


96
97
98
99
100
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 96

def architecture(architecture)
  @b.append " -arch #{@b.format architecture}"
  yield @b if block_given?
  self
end

#build_action(build_action) {|@b| ... } ⇒ Object

Yields:

  • (@b)


161
162
163
164
165
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 161

def build_action(build_action)
  @b.append " #{@b.format build_action, ' '}"
  yield @b if block_given?
  self
end

#configuration(configuration_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


101
102
103
104
105
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 101

def configuration(configuration_name)
  @b.append " -configuration #{@b.format configuration_name}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


106
107
108
109
110
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 106

def dry_run
  @b.append ' -dry-run'
  yield @b if block_given?
  self
end

#jobs(number) {|@b| ... } ⇒ Object

Yields:

  • (@b)


111
112
113
114
115
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 111

def jobs(number)
  @b.append " -jobs #{@b.format number}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


116
117
118
119
120
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 116

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

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

Yields:

  • (@b)


121
122
123
124
125
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 121

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

#sdk(sdk_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


131
132
133
134
135
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 131

def sdk(sdk_name)
  @b.append " -sdk #{@b.format sdk_name}"
  yield @b if block_given?
  self
end

#setting(setting, value) {|@b| ... } ⇒ Object

Yields:

  • (@b)


156
157
158
159
160
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 156

def setting(setting, value)
  @b.append " #{@b.format setting}=#{@b.format value}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


136
137
138
139
140
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 136

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

#target(target_name) {|@b| ... } ⇒ Object

Yields:

  • (@b)


126
127
128
129
130
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 126

def target(target_name)
  @b.append " -target #{@b.format target_name}"
  yield @b if block_given?
  self
end

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

Yields:

  • (@b)


141
142
143
144
145
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 141

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

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

Yields:

  • (@b)


146
147
148
149
150
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 146

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

#xcconfig(path) {|@b| ... } ⇒ Object

Yields:

  • (@b)


151
152
153
154
155
# File 'lib/fluent_command_builder/command_builders/xcodebuild_45.rb', line 151

def xcconfig(path)
  @b.append " -xcconfig #{@b.format path}"
  yield @b if block_given?
  self
end