Class: Xcake::Scheme

Inherits:
Object
  • Object
show all
Includes:
Visitable
Defined in:
lib/xcake/dsl/scheme.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitable

#accept

Constructor Details

#initialize(name) {|_self| ... } ⇒ Scheme

Returns a new instance of Scheme.

Yields:

  • (_self)

Yield Parameters:

  • _self (Xcake::Scheme)

    the object that the method was called on



43
44
45
46
47
48
49
50
51
52
# File 'lib/xcake/dsl/scheme.rb', line 43

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

Instance Attribute Details

#analyze_configurationObject

The configuration to use when analyzing

Defaults to "Debug"



35
36
37
# File 'lib/xcake/dsl/scheme.rb', line 35

def analyze_configuration
  @analyze_configuration
end

#archive_configurationObject

The configuration to use when archving

Defaults to "Release"



41
42
43
# File 'lib/xcake/dsl/scheme.rb', line 41

def archive_configuration
  @archive_configuration
end

#launch_configurationObject

The configuration to use when launching

Defaults to "Debug"



23
24
25
# File 'lib/xcake/dsl/scheme.rb', line 23

def launch_configuration
  @launch_configuration
end

#nameObject

The name for the scheme



11
12
13
# File 'lib/xcake/dsl/scheme.rb', line 11

def name
  @name
end

#profile_configurationObject

The configuration to use when profiling

Defaults to "Debug"



29
30
31
# File 'lib/xcake/dsl/scheme.rb', line 29

def profile_configuration
  @profile_configuration
end

#test_configurationObject

The configuration to use when testing

Defaults to "Debug"



17
18
19
# File 'lib/xcake/dsl/scheme.rb', line 17

def test_configuration
  @test_configuration
end