Top Level Namespace

Defined Under Namespace

Modules: HMAC, PluginTool

Constant Summary collapse

ONEIS_PLUGIN_ROOT_DIR =
"#{File.dirname(__FILE__)}/.."
JS_JAR =
"#{ONEIS_PLUGIN_ROOT_DIR}/lib/js.jar"
LOCAL_ONLY_COMMANDS =

Commands not needing server

{"license-key" => true, "pack" => true, "check" => true}
PLUGIN_TOOL_COMMAND =

Handle rest of command line – first arg is the command, the rest are passed on

(ARGV.shift || 'develop')

Instance Method Summary collapse

Instance Method Details

#end_on_error(err) ⇒ Object



2
3
4
5
# File 'lib/plugin_tool.rb', line 2

def end_on_error(err)
  puts err
  exit 1
end

#find_all_pluginsObject

Plugin names handling



70
71
72
73
74
75
76
77
78
# File 'lib/plugin_tool.rb', line 70

def find_all_plugins()
  all_plugins = []
  Dir.glob("**/plugin.json").each do |p|
    if p =~ /\A([a-zA-Z0-9_]+)\/plugin\.json\z/
      all_plugins << $1
    end
  end
  all_plugins
end