Module: XcodeArchiveCache::Config::DSL
- Included in:
- XcodeArchiveCache::Config
- Defined in:
- lib/config/dsl.rb
Instance Method Summary collapse
- #action(name) ⇒ Object
- #build_configuration(name) ⇒ Object
- #cache(name) ⇒ Object
- #cache_itself ⇒ Object
- #configuration(name) ⇒ Object
- #derived_data_path(path) ⇒ Object
- #project(name) ⇒ Object
- #target(name) ⇒ String
- #workspace(name) ⇒ Object
- #xcodebuild_args(args) ⇒ Object
Instance Method Details
#action(name) ⇒ Object
37 38 39 |
# File 'lib/config/dsl.rb', line 37 def action(name) current_configuration.action = name end |
#build_configuration(name) ⇒ Object
31 32 33 |
# File 'lib/config/dsl.rb', line 31 def build_configuration(name) current_configuration.build_configuration = name end |
#cache(name) ⇒ Object
64 65 66 |
# File 'lib/config/dsl.rb', line 64 def cache(name) current_target.dependencies.push(name) end |
#cache_itself ⇒ Object
68 69 70 |
# File 'lib/config/dsl.rb', line 68 def cache_itself current_target.dependencies.push(current_target.name) end |
#configuration(name) ⇒ Object
23 24 25 26 27 |
# File 'lib/config/dsl.rb', line 23 def configuration(name) entry.configurations.push(Configuration.new(name)) yield end |
#derived_data_path(path) ⇒ Object
49 50 51 |
# File 'lib/config/dsl.rb', line 49 def derived_data_path(path) entry.settings.derived_data_path = path end |
#project(name) ⇒ Object
15 16 17 18 19 |
# File 'lib/config/dsl.rb', line 15 def project(name) self.entry = Project.new(name) yield end |
#target(name) ⇒ String
55 56 57 58 59 60 |
# File 'lib/config/dsl.rb', line 55 def target(name) target = Target.new(name) entry.targets.push(target) yield end |
#workspace(name) ⇒ Object
7 8 9 10 11 |
# File 'lib/config/dsl.rb', line 7 def workspace(name) self.entry = Workspace.new(name) yield end |
#xcodebuild_args(args) ⇒ Object
43 44 45 |
# File 'lib/config/dsl.rb', line 43 def xcodebuild_args(args) current_configuration.xcodebuild_args = args end |