Class: Decko::Commands

Inherits:
Cardio::Commands 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::Commands

#args, #command

Instance Method Summary collapse

Methods inherited from Cardio::Commands

gem, #initialize, #run

Constructor Details

This class inherits a constructor from Cardio::Commands

Instance Method Details

#gemObject



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

def gem
  "decko"
end

#generator_requirementObject



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

def generator_requirement
  "decko/generators"
end

#mapObject



7
8
9
10
11
12
# File 'decko/lib/decko/commands.rb', line 7

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



22
23
24
25
# File 'decko/lib/decko/commands.rb', line 22

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

#run_versionObject



27
28
29
# File 'decko/lib/decko/commands.rb', line 27

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