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/server/adapters/webrick.rb,
lib/webcommand/extensions/hash_extension.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.commandsObject



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

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

.configObject



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

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

.root_pathObject



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

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