Class: Decko::Commands

Inherits:
Cardio::Command show all
Defined in:
decko/lib/decko/commands.rb,
decko/lib/decko/commands/cucumber_command.rb,
decko/lib/decko/commands/cucumber_command/parser.rb

Defined Under Namespace

Classes: CucumberCommand

Instance Attribute Summary

Attributes inherited from Cardio::Command

#args, #command

Instance Method Summary collapse

Methods inherited from Cardio::Command

#initialize, #run, run_non_deck_command

Constructor Details

This class inherits a constructor from Cardio::Command

Instance Method Details

#gemObject



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

def gem
  "decko"
end

#generator_requirementObject



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

def generator_requirement
  "decko/generators"
end

#mapObject



9
10
11
12
13
14
# File 'decko/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_cucumberObject



24
25
26
27
# File 'decko/lib/decko/commands.rb', line 24

def run_cucumber
  require "decko/commands/cucumber_command"
  CucumberCommand.new(args).run
end

#run_versionObject



29
30
31
# File 'decko/lib/decko/commands.rb', line 29

def run_version
  puts "Decko #{Cardio::Version.release}".light_cyan
end