Class: Perkins::CLI

Inherits:
Thor show all
Includes:
ThorUtils, Thor::Actions
Defined in:
lib/perkins/cli.rb

Constant Summary collapse

STATUS_TYPES =
{:success          => 0,
:general_error    => 1,
:not_supported    => 3,
:not_found        => 4,
:incorrect_usage  => 64,
}

Instance Method Summary collapse

Methods included from ThorUtils

#base_location, #create_directories, #create_new_file, #create_with_template, #error, #log, #remove_directories, #remove_files, source_root, #templates, #touch, #underscore

Instance Method Details

#infoObject



29
30
31
# File 'lib/perkins/cli.rb', line 29

def info
  say "Version #{::Perkins::VERSION}"
end

#server(config) ⇒ Object



38
39
40
41
# File 'lib/perkins/cli.rb', line 38

def server(config)
  #::Perkins::Server.app = eval(File.open(options.config_file).read)
  ::Perkins::Server.start(config, options)
end