Class: Xcake::Scheme
- Inherits:
-
Object
- Object
- Xcake::Scheme
- 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
-
#analyze_configuration ⇒ Object
The configuration to use when analyzing.
-
#archive_configuration ⇒ Object
The configuration to use when archving.
-
#launch_configuration ⇒ Object
The configuration to use when launching.
-
#name ⇒ Object
The name for the scheme.
-
#profile_configuration ⇒ Object
The configuration to use when profiling.
-
#test_configuration ⇒ Object
The configuration to use when testing.
Instance Method Summary collapse
-
#initialize(name) {|_self| ... } ⇒ Scheme
constructor
A new instance of Scheme.
Methods included from Visitable
Constructor Details
#initialize(name) {|_self| ... } ⇒ Scheme
Returns a new instance of Scheme.
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_configuration ⇒ Object
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_configuration ⇒ Object
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_configuration ⇒ Object
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 |
#name ⇒ Object
The name for the scheme
11 12 13 |
# File 'lib/xcake/dsl/scheme.rb', line 11 def name @name end |
#profile_configuration ⇒ Object
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_configuration ⇒ Object
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 |