Class: FluentCommandBuilder::XCodeBuild::V45::BuildProject
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::XCodeBuild::V45::BuildProject
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
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
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
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
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
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
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
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
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
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
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
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
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
|
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
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
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
|