Module: Trooper::Config::Defaults

Includes:
Action
Included in:
Trooper::Configuration
Defined in:
lib/trooper/config/defaults.rb

Constant Summary collapse

FILE_NAME =
"Troopfile"

Constants included from Action

Action::DEFAULT_ACTIONS

Instance Method Summary collapse

Methods included from Action

#action, #load_default_actions!

Instance Method Details

#load_defaults!(options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/trooper/config/defaults.rb', line 10

def load_defaults!(options = {})
  config[:file_name] = options[:file_name] || FILE_NAME
  config[:environment] = options[:environment] || :production
  config[:ruby_bin_path] = options[:ruby_bin_path] || ""
  
  load_default_actions!
end