mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 02:35:57 +02:00
Throw out old stuff
This commit is contained in:
parent
3ed2cddad4
commit
8307cde4ab
12 changed files with 31 additions and 644 deletions
|
@ -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
|
|
@ -1,5 +1,4 @@
|
|||
class Epp::ContactsController < ApplicationController
|
||||
include Epp::Common
|
||||
class Epp::ContactsController < EppController
|
||||
include Shared::UserStamper ## Refactor this?
|
||||
helper WhodunnitHelper ## Refactor this?
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
class Epp::DomainsController < ApplicationController
|
||||
include Epp::Common
|
||||
|
||||
class Epp::DomainsController < EppController
|
||||
def create
|
||||
@domain = Epp::EppDomain.new(domain_create_params)
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
class Epp::SessionsController < ApplicationController
|
||||
include Epp::Common
|
||||
layout false
|
||||
|
||||
class Epp::SessionsController < EppController
|
||||
def hello
|
||||
render_epp_response('greeting')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue