Sha256: fc461d75ef850e03d185e44032cfabb135d17a5e8c506d3922b789ca5991bf56
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
require 'relish' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
relish-0.0.8 | lib/relish/command.rb |
relish-0.0.7 | lib/relish/command.rb |
relish-0.0.6 | lib/relish/command.rb |