Class: Xcake::ShellScriptBuildPhase

Inherits:
Object
  • Object
show all
Defined in:
lib/xcake/shell_script_build_phase.rb

Overview

This class is used to hold a shell script build phase name and script contents

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/xcake/shell_script_build_phase.rb', line 6

def name
  @name
end

#scriptObject

Returns the value of attribute script.



7
8
9
# File 'lib/xcake/shell_script_build_phase.rb', line 7

def script
  @script
end

Instance Method Details

#generate_native_build_phase(target) ⇒ Object



9
10
11
12
13
# File 'lib/xcake/shell_script_build_phase.rb', line 9

def generate_native_build_phase(target)
  phase = target.new_shell_script_build_phase(name)
  phase.shell_script = script
  phase
end