Module: Wagn

Defined in:
lib/wagn.rb,
lib/wagn/commands.rb,
lib/wagn/response.rb,
lib/wagn/exceptions.rb,
lib/wagn/application.rb,
lib/wagn/commands/command.rb,
lib/wagn/script_wagn_loader.rb,
lib/wagn/commands/rake_command.rb,
lib/wagn/commands/rspec_command.rb,
lib/wagn/commands/cucumber_command.rb,
lib/wagn/commands/rake_command/parser.rb,
lib/wagn/commands/rspec_command/parser.rb,
lib/wagn/commands/cucumber_command/parser.rb

Defined Under Namespace

Modules: Commands, Response, ScriptWagnLoader Classes: Application, BadAddress

Constant Summary collapse

WAGN_GEM_ROOT =
File.expand_path("../..", __FILE__)

Class Method Summary collapse

Class Method Details

.applicationObject



10
11
12
# File 'lib/wagn.rb', line 10

def application
  Rails.application
end

.card_gem_rootObject



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

def card_gem_root
  @card_gem_root ||= locate_gem "card"
end

.configObject



14
15
16
# File 'lib/wagn.rb', line 14

def config
  application.config
end

.gem_rootObject



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

def gem_root
  WAGN_GEM_ROOT
end

.pathsObject



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

def paths
  application.paths
end

.rootObject



6
7
8
# File 'lib/wagn.rb', line 6

def root
  Rails.root
end