module Webcommand

Constants

VERSION

Public Class Methods

commands() click to toggle source
# File lib/webcommand.rb, line 23
def self.commands
  @commands ||= Commands.new(config[:commands])
end
config() click to toggle source
# File lib/webcommand.rb, line 19
def self.config
  @config ||= Config.new(load_configuration)
end
root_path() click to toggle source
# File lib/webcommand.rb, line 27
def self.root_path
  Pathname.new File.expand_path(File.dirname(__FILE__) + '/..')
end

Private Class Methods

load_configuration() click to toggle source
# File lib/webcommand.rb, line 31
def self.load_configuration
  # TODO: Validate Configuration
  config_path = ENV['WEBCOMMAND_CONFIGURATION']
  YAML.load_file(config_path)
end