Sha256: f11efb9078ba196c6efd4fed030fced5576e0f6d2faa6e0997230cac128193ff

Contents?: true

Size: 1.15 KB

Versions: 10

Compression:

Stored size: 1.15 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

10 entries across 10 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/dsl/scheme.rb
xcake-0.12.1 lib/xcake/dsl/scheme.rb
xcake-0.12.0 lib/xcake/dsl/scheme.rb
xcake-0.11.0 lib/xcake/dsl/scheme.rb
xcake-0.10.0 lib/xcake/dsl/scheme.rb
xcake-0.9.4 lib/xcake/dsl/scheme.rb
xcake-0.9.3 lib/xcake/dsl/scheme.rb
xcake-0.9.2 lib/xcake/dsl/scheme.rb
xcake-0.9.1 lib/xcake/dsl/scheme.rb
xcake-0.9.0 lib/xcake/dsl/scheme.rb