class Gutsy::Configuration

Public Class Methods

load_from_file!(config_file_path) click to toggle source
# File lib/gutsy/configuration.rb, line 3
def self.load_from_file!(config_file_path)
  yaml_config = YAML.load_file(config_file_path).deep_symbolize_keys
  raise "Not a valid gutsy configration file" unless yaml_config[:gutsy]
  new(yaml_config[:gutsy])
end
new(config) click to toggle source
# File lib/gutsy/configuration.rb, line 9
def initialize(config)
  @config = config
end

Public Instance Methods

apps() click to toggle source
# File lib/gutsy/configuration.rb, line 13
def apps
  @config.values
end