Class: StackedConfig::Layers::ProvidedConfigFileLayer

Inherits:
SuperStack::Layer
  • Object
show all
Defined in:
lib/stacked_config/layers/provided_config_file_layer.rb

Instance Method Summary collapse

Instance Method Details

#managedObject


7
8
9
10
11
12
13
14
15
# File 'lib/stacked_config/layers/provided_config_file_layer.rb', line 7

def managed
  build_command_line_options unless @already_built
  if manager[:'config-file']
    if File.readable? manager[:'config-file']
      @file_name = manager[:'config-file']
      self.merge_policy = SuperStack::MergePolicies::OverridePolicy if manager[:'config-override']
    end
  end
end