Sha256: 47d08d52e264b0d765a0c5f8e9ff1991fcc65cac312f7c5159df06bf2b0ce4e4
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
require 'thor' module Lazyman class CLI < Thor include Thor::Actions argument :app_name, required: false def self.source_root File.join File.dirname(__FILE__), 'generators' end desc 'new project', 'create a lazyman project' def new if app_name directory 'lazyman', app_name else say 'no app name' end end desc 'go', 'run test case with rspec' def go ARGV.shift puts "rspec #{ARGV.join('')}" if $debug run "rspec #{ARGV.join('')}" end end CLI.start end #Lazyman
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lazyman-0.1.4 | lib/lazyman/cli.rb |
lazyman-0.1.3 | lib/lazyman/cli.rb |