Module: Decko

Defined in:
decko/lib/decko/commands/command.rb,
decko/lib/decko.rb,
decko/lib/decko/engine.rb,
decko/lib/decko/swagger.rb,
decko/lib/decko/commands.rb,
decko-rails/lib/decko/rails.rb,
decko/lib/decko/application.rb,
decko/lib/decko/rest_spec_helper.rb,
decko/lib/decko/script_decko_loader.rb,
decko/lib/decko/commands/rake_command.rb,
decko/lib/decko/commands/rspec_command.rb,
decko/lib/decko/commands/cucumber_command.rb,
decko/lib/decko/commands/rake_command/parser.rb,
decko/lib/decko/commands/rspec_command/parser.rb,
decko/lib/decko/generators/deck/deck_generator.rb,
decko/lib/decko/commands/cucumber_command/parser.rb,
decko/lib/decko/generators/deck/deck_generator/deck_helper.rb,
decko/lib/decko/generators/deck/deck_generator/interactive.rb,
decko/lib/decko/generators/deck/deck_generator/rails_overrides.rb

Overview

require “pry”

Defined Under Namespace

Modules: Commands, Generators, Rails, RestSpecHelper, RestSpecMethods, ScriptDeckoLoader Classes: Application, Engine, Railtie, Swagger

Constant Summary collapse

DECKO_GEM_ROOT =
File.expand_path("..", __dir__)
ModsSpecHelper =
:needs_a_value_so_spring_loader_is_happy

Class Method Summary collapse

Class Method Details

.applicationObject



9
10
11
# File 'decko/lib/decko.rb', line 9

def application
  Rails.application
end

.configObject



13
14
15
# File 'decko/lib/decko.rb', line 13

def config
  application.config
end

.gem_rootObject



21
22
23
# File 'decko/lib/decko.rb', line 21

def gem_root
  DECKO_GEM_ROOT
end

.pathsObject



17
18
19
# File 'decko/lib/decko.rb', line 17

def paths
  application.paths
end

.rootObject



5
6
7
# File 'decko/lib/decko.rb', line 5

def root
  Rails.root
end