Class: Bricolage::DestFileParam
- Inherits:
-
Param
- Object
- Param
- Bricolage::DestFileParam
show all
- Defined in:
- lib/bricolage/parameters.rb
Instance Attribute Summary
Attributes inherited from Param
#arg_spec, #description, #name
Instance Method Summary
collapse
Methods inherited from Param
#have_arg?, #inspect, #option_name, #optional?, #parse_option_value, #parse_value, #publish?, #required?
Constructor Details
#initialize(name = 'dest-file', arg_spec = 'PATH', description = 'Target file name.', optional: false, publish: false) ⇒ DestFileParam
569
570
571
572
|
# File 'lib/bricolage/parameters.rb', line 569
def initialize(name = 'dest-file', arg_spec = 'PATH', description = 'Target file name.',
optional: false, publish: false)
super name, arg_spec, description, optional: optional, publish: publish
end
|
Instance Method Details
#default_value(ctx, vars) ⇒ Object
574
575
576
|
# File 'lib/bricolage/parameters.rb', line 574
def default_value(ctx, vars)
nil
end
|
#materialize(path, ctx, vars) ⇒ Object
578
579
580
|
# File 'lib/bricolage/parameters.rb', line 578
def materialize(path, ctx, vars)
Pathname(expand(path, vars))
end
|
#variables(path) ⇒ Object
582
583
584
|
# File 'lib/bricolage/parameters.rb', line 582
def variables(path)
wrap_variable_value(path.to_s)
end
|