Class: Lazyman::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/lazyman/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



9
10
11
# File 'lib/lazyman/cli.rb', line 9

def self.source_root
	File.join File.dirname(__FILE__), 'generators'
end

Instance Method Details

#cObject



30
31
32
# File 'lib/lazyman/cli.rb', line 30

def c
	run 'bin/console'
end

#goObject



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

#newObject



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