Module: Albacore::CmdConfig

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

Methods included from ConfigDSL

attr_path, attr_path_accessor

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

#parametersObject

returns a Set with parameters



34
35
36
# File 'lib/albacore/cmd_config.rb', line 34

def parameters
  @parameters ||= Set.new
end