mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Mode all the actions to Interactions folder
This commit is contained in:
parent
d7f01f24a2
commit
fdef27c45e
18 changed files with 20 additions and 20 deletions
|
@ -39,7 +39,7 @@ module Repp
|
|||
|
||||
def cta(action = 'add')
|
||||
params[:contacts].each { |c| c[:action] = action }
|
||||
action = ::Actions::DomainUpdate.new(@domain, contact_create_params, false)
|
||||
action = Actions::DomainUpdate.new(@domain, contact_create_params, false)
|
||||
|
||||
# rubocop:disable Style/AndOr
|
||||
handle_errors(@domain) and return unless action.call
|
||||
|
|
|
@ -38,7 +38,7 @@ module Repp
|
|||
|
||||
def cta(action = 'add')
|
||||
params[:dns_keys].each { |n| n[:action] = action }
|
||||
action = ::Actions::DomainUpdate.new(@domain, dnssec_params, false)
|
||||
action = Actions::DomainUpdate.new(@domain, dnssec_params, false)
|
||||
|
||||
# rubocop:disable Style/AndOr
|
||||
(handle_errors(@domain) and return) unless action.call
|
||||
|
|
|
@ -14,7 +14,7 @@ module Repp
|
|||
end
|
||||
def create
|
||||
params[:nameservers].each { |n| n[:action] = 'add' }
|
||||
action = ::Actions::DomainUpdate.new(@domain, nameserver_params, current_user)
|
||||
action = Actions::DomainUpdate.new(@domain, nameserver_params, current_user)
|
||||
|
||||
unless action.call
|
||||
handle_errors(@domain)
|
||||
|
@ -28,7 +28,7 @@ module Repp
|
|||
desc 'Delete specific nameserver from domain'
|
||||
def destroy
|
||||
nameserver = { nameservers: [{ hostname: params[:id], action: 'rem' }] }
|
||||
action = ::Actions::DomainUpdate.new(@domain, nameserver, false)
|
||||
action = Actions::DomainUpdate.new(@domain, nameserver, false)
|
||||
|
||||
unless action.call
|
||||
handle_errors(@domain)
|
||||
|
|
|
@ -10,7 +10,7 @@ module Repp
|
|||
param :transfer_code, String, required: true, desc: 'Renew period. Month (m) or year (y)'
|
||||
end
|
||||
def create
|
||||
action = ::Actions::DomainTransfer.new(@domain, transfer_params[:transfer][:transfer_code],
|
||||
action = Actions::DomainTransfer.new(@domain, transfer_params[:transfer][:transfer_code],
|
||||
current_user.registrar)
|
||||
|
||||
unless action.call
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue