Class: Lazyman::CLI
- Inherits:
-
Thor
- Object
- Thor
- Lazyman::CLI
- Includes:
- Thor::Actions
- Defined in:
- lib/lazyman/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/lazyman/cli.rb', line 9 def self.source_root File.join File.dirname(__FILE__), 'generators' end |
Instance Method Details
#c ⇒ Object
30 31 32 |
# File 'lib/lazyman/cli.rb', line 30 def c run 'bin/console' end |
#go ⇒ Object
23 24 25 26 27 |
# File 'lib/lazyman/cli.rb', line 23 def go ARGV.shift puts "rspec #{ARGV.join('')}" if $debug run "rspec #{ARGV.join('')}" end |
#new ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/lazyman/cli.rb', line 14 def new if app_name directory 'lazyman', app_name else say 'no app name' end end |