class Seiya::Contrib::Commands::Gentask

Public Instance Methods

run(*args) click to toggle source
# File lib/seiya/contrib/commands/gentask.rb, line 23
def run(*args)
  task_name = args.shift
  task_domain = args.shift
  if task_name.nil?
    puts 'Need a task_name!'
    exit!
  end
  Seiya.gen_task_file task_name, task_domain
end
summary() click to toggle source
# File lib/seiya/contrib/commands/gentask.rb, line 7
def summary
  'Generate new task using pre-defined templates'
end
usage() click to toggle source
# File lib/seiya/contrib/commands/gentask.rb, line 11
        def usage
          'Usage
=====
  seiya gentask [options] <name> <domain>

Generate new task using pre-defined templates

Options
=======
--help, -h      show this help message and exit'
        end