Sha256: a18eb4dc6302619bf1a16791f6a776b87f48585d54cb5679f7fdf18c2d85640f
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
require 'relish/commands/base' require 'relish/commands/push' require 'relish/commands/config' require 'relish/commands/projects' require 'relish/commands/help' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relish-0.0.5 | lib/relish/command.rb |
relish-0.0.4 | lib/relish/command.rb |