Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 311b1c5b63
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.47 kb
require 'relish/commands/base'
require 'relish/commands/push'
module Relish
module Command
def self.run(command, args)
command_class, method = get_command_and_method(command, args)
command_class.new(args).send(method)
end
def self.get_command_and_method(command, args)
command_class, method = command.split(':')
return Relish::Command.const_get(command_class.capitalize), (method || :default)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.