Sha256: 3faaca911ced0e0e59f0bf0c91874e14aa0143ae04164a38f1fc0e98336cba61

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

module Goodcheck
  module Commands
    module ConfigLoading
      attr_reader :config

      def load_config!
        content = JSON.parse(JSON.dump(YAML.load(config_path.read, config_path.to_s)), symbolize_names: true)
        loader = ConfigLoader.new(path: config_path, content: content)
        @config = loader.load
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
goodcheck-1.1.0 lib/goodcheck/commands/config_loading.rb
goodcheck-1.0.0 lib/goodcheck/commands/config_loading.rb
goodcheck-0.3.0 lib/goodcheck/commands/config_loading.rb
goodcheck-0.2.0 lib/goodcheck/commands/config_loading.rb
goodcheck-0.1.0 lib/goodcheck/commands/config_loading.rb