Class: QCloudHive::BuildShell

Inherits:
Object
  • Object
show all
Defined in:
lib/qcloudhive/framework.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



19
20
21
# File 'lib/qcloudhive/framework.rb', line 19

def config
  @config
end

#nameObject

Returns the value of attribute name.



20
21
22
# File 'lib/qcloudhive/framework.rb', line 20

def name
  @name
end

#other_cflagsObject

Returns the value of attribute other_cflags.



21
22
23
# File 'lib/qcloudhive/framework.rb', line 21

def other_cflags
  @other_cflags
end

#productsDirObject

Returns the value of attribute productsDir.



18
19
20
# File 'lib/qcloudhive/framework.rb', line 18

def productsDir
  @productsDir
end

#sdkObject

Returns the value of attribute sdk.



22
23
24
# File 'lib/qcloudhive/framework.rb', line 22

def sdk
  @sdk
end

Instance Method Details

#to_cmdObject



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