Module: AppStack

Defined in:
lib/app_stack.rb,
lib/app_stack/config.rb,
lib/app_stack/merger.rb,
lib/app_stack/version.rb

Overview

AppStack module

Defined Under Namespace

Classes: Config, Merger, ParseError

Constant Summary collapse

CONF_FILE =
'./.app_stack.yml'
VERSION =
'1.2.0'

Class Method Summary collapse

Class Method Details

.stackup!(conf_file) ⇒ Object

based on conf_file, merge up from stack of applications



25
26
27
28
29
30
31
32
# File 'lib/app_stack.rb', line 25

def stackup!(conf_file)
  # merge files from stacks
  conf_file ||= CONF_FILE
  mger = Merger.new(conf_file)

  # not run, just prepare in vobose mode
  ENV['NR'] ? mger.prepare(true) : mger.merge!
end