lib/relish/command.rb in relish-0.1.3 vs lib/relish/command.rb in relish-0.1.4
- old
+ new
@@ -1,14 +1,16 @@
require 'relish'
require 'relish/helpers'
require 'relish/error_messages'
+require 'relish/resource_methods'
require 'relish/commands/base'
require 'relish/commands/collab'
require 'relish/commands/config'
require 'relish/commands/help'
require 'relish/commands/projects'
require 'relish/commands/push'
+require 'relish/commands/versions'
module Relish
module Command
class << self
@@ -21,10 +23,10 @@
def get_command_and_method(command, args)
command_class, method = command.split(':')
return get_command(command_class.capitalize), get_method(method)
rescue NameError
- error ErrorMessages.unknown_command
+ error :unknown_command
end
private
def get_command(command)
\ No newline at end of file