class Exhaust::Configuration

Attributes

configuration[R]

Public Class Methods

new() click to toggle source
# File lib/exhaust/configuration.rb, line 8
def initialize
  assert_file(".exhaust.yml") do |file_name|
    @configuration = YAML.load_file(file_name)
  end
end

Public Instance Methods

assert_file(file_name) { |file_name| ... } click to toggle source
# File lib/exhaust/configuration.rb, line 14
def assert_file(file_name)
  raise FileNotFound.new("#{file_name} was not found") unless File.exists?(file_name)
  yield(file_name)
end
ember_path() click to toggle source
# File lib/exhaust/configuration.rb, line 23
def ember_path
  configuration["ember"]["path"]
end
ember_port() click to toggle source
# File lib/exhaust/configuration.rb, line 19
def ember_port
  configuration["ember"]["port"]
end
rails_path() click to toggle source
# File lib/exhaust/configuration.rb, line 31
def rails_path
  configuration["rails"]["path"]
end
rails_port() click to toggle source
# File lib/exhaust/configuration.rb, line 27
def rails_port
  configuration["rails"]["port"]
end