Sha256: cc6755a3ddf79eced03b100c9dc62749dcbcb5025ee0b9844f16d7f9a1bdd771

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2010, Sebastian Staudt

require 'yaml'

module Rubikon

  module Config

    # A configuration provider loading configuration data from YAML files
    #
    # @author Sebastian Staudt
    # @since 0.5.0
    class YamlProvider

      # Loads a configuration Hash from a YAML formatted file
      #
      # @param [String] file The path of the file to load
      # @return [Hash] The configuration data loaded from the file
      def self.load_config(file)
        YAML.load_file file
      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubikon-0.5.3 lib/rubikon/config/yaml_provider.rb
rubikon-0.5.2 lib/rubikon/config/yaml_provider.rb
rubikon-0.5.1 lib/rubikon/config/yaml_provider.rb
rubikon-0.5.0 lib/rubikon/config/yaml_provider.rb