Sha256: 357cf3fd3392a3bfb6256e8c43a5dc00e05b12780567fceddb5d9167447a601a

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

require 'yaml'

module Steamy
  
  class Config
    
    FILE = "#{ENV['HOME']}/.steamy"
    
    def self.config
      if File.exist?(FILE)
        YAML.load_file(FILE)
      else
        puts "Please create a config file in #{ENV['HOME']}/.steamy"
        exit 1
      end
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
steamy-0.0.5 lib/steamy/config.rb
steamy-0.0.4 lib/steamy/config.rb
steamy-0.0.3 lib/steamy/config.rb
steamy-0.0.2 lib/steamy/config.rb