diff --git a/lib/relish/commands/base.rb b/lib/relish/commands/base.rb index 3c9b57a..5bc38e3 100644 --- a/lib/relish/commands/base.rb +++ b/lib/relish/commands/base.rb @@ -47,7 +47,9 @@ def get_api_token end def resource(options = {}) - RestClient::Resource.new(url, {:user => api_token, :password => 'X'}.merge(options)) + options[:user] ||= api_token + options[:password] ||= 'X' + RestClient::Resource.new(url, options) end def clean_args(args)