Class: Decko::Commands

Inherits:
Cardio::Command
  • Object
show all
Defined in:
lib/decko/commands.rb,
lib/decko/commands/cucumber_command.rb,
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 Method Summary collapse

Instance Method Details

#gemObject



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

def gem
  "decko"
end

#generator_requirementObject



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

def generator_requirement
  "decko/generators"
end

#mapObject



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



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

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

#run_versionObject



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

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