lib/relish/commands/projects.rb in relish-0.0.7 vs lib/relish/commands/projects.rb in relish-0.0.8

- old
+ new

@@ -16,17 +16,17 @@ warn exception.response exit exception.http_code end def add - puts resource['projects'].post(:api_token => api_token, :handle => @param) + puts resource['projects'].post(:handle => @param) rescue RestClient::Exception => exception warn exception.response exit 1 end def remove - puts resource["projects/#{@param}?api_token=#{api_token}"].delete + puts resource["projects/#{@param}"].delete rescue RestClient::Exception => exception warn exception.response exit 1 end \ No newline at end of file