Sha256: 2433bb7b753a543f5e301fb61e0dfe458ab74604d2c957724860b6602155b640

Contents?: true

Size: 1.06 KB

Versions: 19

Compression:

Stored size: 1.06 KB

Contents

module Xcake
  # 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`.
  #
  class BuildPhase
    # @param    [Proc] block
    #           an optional block that configures the build phase through the DSL.
    #
    # @example  Creating a Build Phase.
    #
    #           BuildPhase.new do |p|
    #             p.name "test"
    #           end
    #
    def initialize
      yield(self) if block_given?
    end

    # 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
    #
    def build_phase_type
      raise 'build_phase_type not implemented'
    end

    # This method is called when generating the build phases
    # subclasses should implement this to handle the
    # configuration of the build phase
    #
    def configure_native_build_phase(_native_build_phase, _context)
      raise 'configure_native_build_phase not implemented'
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/dsl/build_phase.rb
xcake-0.12.1 lib/xcake/dsl/build_phase.rb
xcake-0.12.0 lib/xcake/dsl/build_phase.rb
xcake-0.11.0 lib/xcake/dsl/build_phase.rb
xcake-0.10.0 lib/xcake/dsl/build_phase.rb
xcake-0.9.4 lib/xcake/dsl/build_phase.rb
xcake-0.9.3 lib/xcake/dsl/build_phase.rb
xcake-0.9.2 lib/xcake/dsl/build_phase.rb
xcake-0.9.1 lib/xcake/dsl/build_phase.rb
xcake-0.9.0 lib/xcake/dsl/build_phase.rb
xcake-0.8.13 lib/xcake/dsl/build_phase.rb
xcake-0.8.12 lib/xcake/dsl/build_phase.rb
xcake-0.8.10 lib/xcake/dsl/build_phase.rb
xcake-0.8.9 lib/xcake/dsl/build_phase.rb
xcake-0.8.8 lib/xcake/dsl/build_phase.rb
xcake-0.8.7 lib/xcake/dsl/build_phase.rb
xcake-0.8.6 lib/xcake/dsl/build_phase.rb
xcake-0.8.3 lib/xcake/dsl/build_phase.rb
xcake-0.8.1 lib/xcake/build_phase.rb