Module: Webcommand

Defined in:
lib/webcommand.rb,
lib/webcommand/cli.rb,
lib/webcommand/server.rb,
lib/webcommand/command.rb,
lib/webcommand/version.rb,
lib/webcommand/commands.rb,
lib/webcommand/extensions/hash_extension.rb

Defined Under Namespace

Modules: Extensions Classes: CLI, Command, Commands, Server

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.commandsObject



22
23
24
# File 'lib/webcommand.rb', line 22

def self.commands
  @commands ||= Commands.new(config[:commands])
end

.configObject



18
19
20
# File 'lib/webcommand.rb', line 18

def self.config
  @config ||= Config.new(load_configuration)
end

.root_pathObject



26
27
28
# File 'lib/webcommand.rb', line 26

def self.root_path
  Pathname.new File.expand_path(File.dirname(__FILE__) + '/..')
end