Class: Ki::Cli::KiGenerator
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Ki::Cli::KiGenerator
show all
- Includes:
- Thor::Actions
- Defined in:
- lib/ki/ki_cli.rb
Overview
Class Method Summary
collapse
Class Method Details
.requires_ki_directory ⇒ Object
14
15
16
17
18
19
|
# File 'lib/ki/ki_cli.rb', line 14
def self.requires_ki_directory
unless File.exist? 'config.ru'
say 'Working directory should be a ki app.'
exit 3
end
end
|
.source_root ⇒ Object
10
11
12
|
# File 'lib/ki/ki_cli.rb', line 10
def self.source_root
File.join(File.dirname(__FILE__), '..', '..')
end
|