Sha256: ae93fc0294947207fb8c7336d031dced77a3bfdbba172f4741e6e0eb3adee3dc

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

module Xcake
  # This class is used to describe a scheme for a
  # Xcode project; This forms part of the DSL
  # and is usually stored in files named `Cakefile`.
  #
  class Scheme
    include Visitable

    # The name for the scheme
    # 
    attr_accessor :name

    # The configuration to use when testing
    #
    # Defaults to "Debug"
    # 
    attr_accessor :test_configuration

    # The configuration to use when launching
    #
    # Defaults to "Debug"
    #
    attr_accessor :launch_configuration

    # The configuration to use when profiling
    #
    # Defaults to "Debug"
    #
    attr_accessor :profile_configuration

    # The configuration to use when analyzing
    #
    # Defaults to "Debug"
    #
    attr_accessor :analyze_configuration

    # The configuration to use when archving
    #
    # Defaults to "Release"
    #
    attr_accessor :archive_configuration

    def initialize(name)

      @name = name
      @test_configuration = 'Debug'
      @launch_configuration = 'Debug'
      @profile_configuration = 'Debug'
      @analyze_configuration = 'Debug'
      @archive_configuration = 'Release'

      yield(self) if block_given?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcake-0.8.13 lib/xcake/dsl/scheme.rb
xcake-0.8.12 lib/xcake/dsl/scheme.rb
xcake-0.8.10 lib/xcake/dsl/scheme.rb
xcake-0.8.9 lib/xcake/dsl/scheme.rb
xcake-0.8.8 lib/xcake/dsl/scheme.rb
xcake-0.8.7 lib/xcake/dsl/scheme.rb
xcake-0.8.6 lib/xcake/dsl/scheme.rb
xcake-0.8.3 lib/xcake/dsl/scheme.rb