module Wagn::Commands

Public Class Methods

run_cucumber() click to toggle source
# File lib/wagn/commands.rb, line 52
def run_cucumber
  require "wagn/commands/cucumber_command"
  CucumberCommand.new(ARGV).run
end
run_db_task(command) click to toggle source
# File lib/wagn/commands.rb, line 57
def run_db_task command
  require "wagn/commands/rake_command"
  RakeCommand.new("wagn:#{command}", ARGV).run
end
run_jasmine() click to toggle source
# File lib/wagn/commands.rb, line 62
def run_jasmine
  require "wagn/commands/rake_command"
  RakeCommand.new("spec:javascript", envs: "test").run
end
run_new() click to toggle source
# File lib/wagn/commands.rb, line 36
def run_new
  if ARGV.first.in?(["-h", "--help"])
    require "wagn/commands/application"
  else
    puts "Can't initialize a new deck within the directory of another, " \
     "please change to a non-deck directory first.\n"
    puts "Type 'wagn' for help."
    exit(1)
  end
end
run_rspec() click to toggle source
# File lib/wagn/commands.rb, line 47
def run_rspec
  require "wagn/commands/rspec_command"
  RspecCommand.new(ARGV).run
end