Class: Ki::Cli::KiGenerator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ki/ki_cli.rb

Overview

:nodoc:

Direct Known Subclasses

AppGenerator, DevConsole, DevServer, KiTaskRunner

Class Method Summary collapse

Class Method Details

.requires_ki_directoryObject



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_rootObject



10
11
12
# File 'lib/ki/ki_cli.rb', line 10

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