Throw out old stuff

This commit is contained in:
Martin Lensment 2015-01-16 16:41:53 +02:00
parent 3ed2cddad4
commit 8307cde4ab
12 changed files with 31 additions and 644 deletions

View file

@ -1,45 +0,0 @@
class Epp::CommandsController < ApplicationController
include Epp::Common
include Epp::DomainsHelper
include Epp::ContactsHelper
include Epp::PollHelper
include Epp::KeyrelayHelper
include Shared::UserStamper
helper WhodunnitHelper
layout false
private
def create
send("create_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def renew
send("renew_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def transfer
send("transfer_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def check
send("check_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def delete
send("delete_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def info
send("info_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def update
send("update_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end
def user_for_paper_trail
current_epp_user ? "#{current_epp_user.id}-EppUser" : nil
end
end

View file

@ -1,5 +1,4 @@
class Epp::ContactsController < ApplicationController
include Epp::Common
class Epp::ContactsController < EppController
include Shared::UserStamper ## Refactor this?
helper WhodunnitHelper ## Refactor this?

View file

@ -1,6 +1,4 @@
class Epp::DomainsController < ApplicationController
include Epp::Common
class Epp::DomainsController < EppController
def create
@domain = Epp::EppDomain.new(domain_create_params)

View file

@ -1,7 +1,4 @@
class Epp::ErrorsController < ApplicationController
include Epp::Common
layout false
class Epp::ErrorsController < EppController
def error
epp_errors << { code: params[:code], msg: params[:msg] }
render_epp_response '/epp/error'

View file

@ -1,5 +1,4 @@
class Epp::KeyrelaysController < ApplicationController
include Epp::Common
class Epp::KeyrelaysController < EppController
# rubocop: disable Metrics/PerceivedComplexity
# rubocop: disable Metrics/CyclomaticComplexity
def keyrelay

View file

@ -1,6 +1,4 @@
class Epp::PollsController < ApplicationController
include Epp::Common
class Epp::PollsController < EppController
def poll
req_poll if params[:parsed_frame].css('poll').first['op'] == 'req'
ack_poll if params[:parsed_frame].css('poll').first['op'] == 'ack'

View file

@ -1,7 +1,4 @@
class Epp::SessionsController < ApplicationController
include Epp::Common
layout false
class Epp::SessionsController < EppController
def hello
render_epp_response('greeting')
end