Class: Patriot::Tool::PatriotCommand

Inherits:
Thor
  • Object
show all
Includes:
Util::Config
Defined in:
lib/patriot/tool/patriot_command.rb

Overview

new command can be added as follows require ‘patriot/tool/patriot_command’ module Hoge

Patriot::Tool::PatriotCommand.class_eval do
  desc 'fuga', 'fuga description'
  def fuga
    puts 'fuga'
  end
end

end

Constant Summary

Constants included from Util::Config

Util::Config::ADMIN_USER_KEY, Util::Config::DEFAULT_CONFIG, Util::Config::DEFAULT_PLUGIN_DIR, Util::Config::INFO_SERVER_PORT_KEY, Util::Config::PASSWORD_KEY, Util::Config::PLUGIN_DIR_KEY, Util::Config::PLUGIN_INIT_SCRIPT, Util::Config::PLUGIN_KEY, Util::Config::PLUGIN_LIB_DIR, Util::Config::USERNAME_KEY, Util::Config::WORKER_HOST_KEY, Util::Config::WORKER_USER_KEY

Method Summary

Methods included from Util::Config

#load_config, #load_plugins