class Seiya::Contrib::Commands::Create

Public Instance Methods

run(*args) click to toggle source
# File lib/seiya/contrib/commands/create.rb, line 23
def run(*args)
  project_name = args.shift
  if project_name.nil?
    puts 'Need a project_name!'
    exit!
  end
  Seiya.gen_project_file project_name
end
summary() click to toggle source
# File lib/seiya/contrib/commands/create.rb, line 7
def summary
  'Create a new project'
end
usage() click to toggle source
# File lib/seiya/contrib/commands/create.rb, line 11
        def usage
          'Usage
=====
  seiya create <project_name>

Create new project

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