Method: Linecook::Commands::Compile.set_common_options

Defined in:
lib/linecook/commands/compile.rb

.set_common_options(options) ⇒ Object



58
59
60
61
62
63
64
# File 'lib/linecook/commands/compile.rb', line 58

def set_common_options(options)
  cookbook_path = (options[:cookbook_path] ||= [])
  cookbook_path << '.'
  cookbook_path.concat cookbook_gem_paths
  (options[:helper_dirs] ||= []) << 'helpers'
  options
end