Sha256: 958bd5c955dbe964882b445076594c3eddc2f9e7c397d9b5ec45092bb249c10d
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relish-0.0.2 | lib/relish/command.rb |