Class: Decko::Commands
- Inherits:
-
Cardio::Command
- Object
- Cardio::Command
- Decko::Commands
- Defined in:
- decko/lib/decko/commands.rb,
decko/lib/decko/commands/cucumber_command.rb,
decko/lib/decko/commands/cucumber_command/parser.rb
Overview
Decko commands extend Cardio::Command to include tasks involving a webserver
Defined Under Namespace
Classes: CucumberCommand
Instance Attribute Summary
Attributes inherited from Cardio::Command
Instance Method Summary collapse
-
#gem ⇒ Object
-
#generator_requirement ⇒ Object
-
#map ⇒ Object
-
#run_cucumber ⇒ Object
-
#run_version ⇒ Object
Methods inherited from Cardio::Command
#initialize, #run, run_non_deck_command
Constructor Details
This class inherits a constructor from Cardio::Command
Instance Method Details
#gem ⇒ Object
21 22 23 |
# File 'decko/lib/decko/commands.rb', line 21 def gem "decko" end |
#generator_requirement ⇒ Object
17 18 19 |
# File 'decko/lib/decko/commands.rb', line 17 def generator_requirement "decko/generators" end |
#map ⇒ Object
10 11 12 13 14 15 |
# File 'decko/lib/decko/commands.rb', line 10 def map @map ||= super.merge( server: { desc: "start a local web server", group: :shark, alias: :s }, cucumber: { desc: "run cucumber tests", group: :monkey, alias: :cc, via: :call} ) end |
#run_cucumber ⇒ Object
25 26 27 28 |
# File 'decko/lib/decko/commands.rb', line 25 def run_cucumber require "decko/commands/cucumber_command" CucumberCommand.new(args).run end |