Class: Xcake::BuildPhase

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

Overview

This class is used to describe a build phase for a Xcode project; This forms part of the DSL and is usually stored in files named ‘Cakefile`.

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ BuildPhase

Returns a new instance of BuildPhase.

Examples:

Creating a Build Phase.


BuildPhase.new do |p|
  p.name "test"
end

Parameters:

  • block (Proc)

    an optional block that configures the build phase through the DSL.

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/xcake/dsl/build_phase.rb', line 16

def initialize
  yield(self) if block_given?
end

Instance Method Details

#build_phase_typeObject

This method is called when generating the build phases subclasses should implement this to allow xcake to know what native build phase type this DSL Object represents



24
25
26
# File 'lib/xcake/dsl/build_phase.rb', line 24

def build_phase_type
  raise 'build_phase_type not implemented'
end

#configure_native_build_phase(_native_build_phase, _context) ⇒ Object

This method is called when generating the build phases subclasses should implement this to handle the configuration of the build phase



32
33
34
# File 'lib/xcake/dsl/build_phase.rb', line 32

def configure_native_build_phase(_native_build_phase, _context)
  raise 'configure_native_build_phase not implemented'
end