class Bashly::Config

A convenience class to use either a hash or a filename as a configuration source

Attributes

config[R]

Public Class Methods

new(config) click to toggle source
# File lib/bashly/config.rb, line 9
def self.new(config)
  if config.is_a? String
    YAML.load_file config
  else
    config
  end
end