Class: Decko::Commands
- Inherits:
-
Cardio::Command
- Object
- Cardio::Command
- Decko::Commands
- Defined in:
- lib/decko/commands.rb,
lib/decko/commands/cucumber_command.rb,
lib/decko/commands/cucumber_command/parser.rb
Defined Under Namespace
Classes: CucumberCommand
Instance Method Summary collapse
- #gem ⇒ Object
- #generator_requirement ⇒ Object
- #map ⇒ Object
- #run_cucumber ⇒ Object
- #run_version ⇒ Object
Instance Method Details
#gem ⇒ Object
20 21 22 |
# File 'lib/decko/commands.rb', line 20 def gem "decko" end |
#generator_requirement ⇒ Object
16 17 18 |
# File 'lib/decko/commands.rb', line 16 def generator_requirement "decko/generators" end |
#map ⇒ Object
9 10 11 12 13 14 |
# File 'lib/decko/commands.rb', line 9 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
24 25 26 27 |
# File 'lib/decko/commands.rb', line 24 def run_cucumber require "decko/commands/cucumber_command" CucumberCommand.new(args).run end |
#run_version ⇒ Object
29 30 31 |
# File 'lib/decko/commands.rb', line 29 def run_version puts "Decko #{Cardio::Version.release}".light_cyan end |