Class: Kdeploy::TemplateOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/kdeploy/dsl/dsl.rb

Overview

Helper for template resource block: captures source and variables

Instance Method Summary collapse

Constructor Details

#initializeTemplateOptions

Returns a new instance of TemplateOptions.



9
10
11
12
# File 'lib/kdeploy/dsl/dsl.rb', line 9

def initialize
  @source = nil
  @variables = {}
end

Instance Method Details

#source(val = nil) ⇒ Object



19
20
21
22
# File 'lib/kdeploy/dsl/dsl.rb', line 19

def source(val = nil)
  @source = val if val
  @source
end

#variables(val = nil) ⇒ Object



14
15
16
17
# File 'lib/kdeploy/dsl/dsl.rb', line 14

def variables(val = nil)
  @variables = val if val
  @variables
end