Sha256: 4a0c3d0a2036de2f1de510ca27e186d827371a3bd7423b7f0d9a0b7118f58a4e

Contents?: true

Size: 571 Bytes

Versions: 14

Compression:

Stored size: 571 Bytes

Contents

module Climatic
  module ConfigLayers

    class ProvidedConfigFileLayer < SuperStack::Layer


      def managed
        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

      private

      def config_filepath
        File.expand_path File.join('..', '..', '..', '..', 'etc', 'default_cmd_line_options.yml'), __FILE__
      end


    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
climatic-0.2.40 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.39 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.38 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.37 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.36 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.35 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.34 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.32 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.31 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.30 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.29 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.28 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.27 lib/climatic/config_layers/provided_config_file_layer.rb
climatic-0.2.26 lib/climatic/config_layers/provided_config_file_layer.rb