Class: BuildTasks::FPMCookery::DSL
- Inherits:
-
Object
- Object
- BuildTasks::FPMCookery::DSL
show all
- Includes:
- Mixins::DSL
- Defined in:
- lib/buildtasks/fpm_cookery/dsl.rb
Instance Method Summary
collapse
#_validate, #codename, #set_or_return
Constructor Details
#initialize(&block) ⇒ DSL
Returns a new instance of DSL.
8
9
10
11
12
13
14
|
# File 'lib/buildtasks/fpm_cookery/dsl.rb', line 8
def initialize(&block)
@recipe = "recipe.rb"
@fpm_cookery_version = "~> 0.27.0"
@fpm_version = "~> 1.3.3"
instance_eval(&block) if block_given?
end
|
Instance Method Details
#fpm_cookery_version(arg = nil) ⇒ Object
20
21
22
|
# File 'lib/buildtasks/fpm_cookery/dsl.rb', line 20
def fpm_cookery_version(arg = nil)
set_or_return(:fpm_cookery_version, arg, :kind_of => String)
end
|
#fpm_version(arg = nil) ⇒ Object
24
25
26
|
# File 'lib/buildtasks/fpm_cookery/dsl.rb', line 24
def fpm_version(arg = nil)
set_or_return(:fpm_version, arg, :kind_of => String)
end
|
#recipe(arg = nil) ⇒ Object
16
17
18
|
# File 'lib/buildtasks/fpm_cookery/dsl.rb', line 16
def recipe(arg = nil)
set_or_return(:recipe, arg, :kind_of => String)
end
|