lib/invoker/runner.rb in invoker-1.0.0 vs lib/invoker/runner.rb in invoker-1.0.1
- old
+ new
@@ -14,10 +14,12 @@
def self.run_command(selected_command)
return unless selected_command
case selected_command.command
when 'setup'
setup_pow(selected_command)
+ when 'uninstall'
+ uninstall_pow(selected_command)
when 'start'
start_server(selected_command)
when 'add'
add_command(selected_command)
when 'reload'
@@ -31,9 +33,13 @@
end
end
def self.setup_pow(selected_command)
Invoker::Power::Setup.install()
+ end
+
+ def self.uninstall_pow(selected_command)
+ Invoker::Power::Setup.uninstall()
end
def self.start_server(selected_command)
config = Invoker::Parsers::Config.new(selected_command.file, selected_command.port)
Invoker.const_set(:CONFIG, config)