Module: Albacore::CmdConfig
- Extended by:
- ConfigDSL
- Includes:
- Logging
- Included in:
- Asmver::Config, Build::Config, NugetsPack::Config, NugetsRestore::Config, TestRunner::Config
- Defined in:
- lib/albacore/cmd_config.rb
Overview
Use on configuration objects that are command-oriented.
a mixin that adds a couple of field writers and readers. specifically, allows the configuration to have a work_dir and exe field and defined a method that joins paths relative to the work_dir
Instance Method Summary collapse
-
#add_parameter(param) ⇒ Object
add a parameter to the list of parameters to pass to the executable.
-
#parameters ⇒ Object
returns a Set with parameters.
Methods included from ConfigDSL
Methods included from Logging
#debug, #err, #error, #fatal, #info, #puts, #trace, #warn
Instance Method Details
#add_parameter(param) ⇒ Object
add a parameter to the list of parameters to pass to the executable
39 40 41 |
# File 'lib/albacore/cmd_config.rb', line 39 def add_parameter param parameters.add param end |
#parameters ⇒ Object
returns a Set with parameters
34 35 36 |
# File 'lib/albacore/cmd_config.rb', line 34 def parameters @parameters ||= Set.new end |