Class: QCloudHive::BuildShell
- Inherits:
-
Object
- Object
- QCloudHive::BuildShell
- Defined in:
- lib/qcloudhive/framework.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#name ⇒ Object
Returns the value of attribute name.
-
#other_cflags ⇒ Object
Returns the value of attribute other_cflags.
-
#productsDir ⇒ Object
Returns the value of attribute productsDir.
-
#sdk ⇒ Object
Returns the value of attribute sdk.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
19 20 21 |
# File 'lib/qcloudhive/framework.rb', line 19 def config @config end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/qcloudhive/framework.rb', line 20 def name @name end |
#other_cflags ⇒ Object
Returns the value of attribute other_cflags.
21 22 23 |
# File 'lib/qcloudhive/framework.rb', line 21 def other_cflags @other_cflags end |
#productsDir ⇒ Object
Returns the value of attribute productsDir.
18 19 20 |
# File 'lib/qcloudhive/framework.rb', line 18 def productsDir @productsDir end |
#sdk ⇒ Object
Returns the value of attribute sdk.
22 23 24 |
# File 'lib/qcloudhive/framework.rb', line 22 def sdk @sdk end |
Instance Method Details
#to_cmd ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/qcloudhive/framework.rb', line 23 def to_cmd cmd ="xcodebuild -configuration #{config} -sdk #{sdk} -workspace #{name}.xcworkspace -scheme #{name} clean\n" cmd +="xcodebuild DEPLOYMENT_POSTPROCESSING=YES STRIP_STYLE=debugging " if not other_cflags.nil? cmd += " OTHER_CFLAGS=#{other_cflags}" end cmd += " -configuration #{config}" cmd += " -workspace #{name}.xcworkspace -scheme #{name}" cmd += " -sdk #{sdk} -derivedDataPath #{productsDir} " cmd end |