module MoodeAutoDeployKit::RemoteDomain

Public Instance Methods

create_domain() click to toggle source
# File lib/moode_auto_deploy_kit/remote_domain.rb, line 7
def create_domain
  response = HTTParty.post(create_domain_url, create_domain_options)
  puts response.body, response.code, response.message
end

Private Instance Methods

create_domain_options() click to toggle source
# File lib/moode_auto_deploy_kit/remote_domain.rb, line 18
def create_domain_options
  options = base_options
  options[:body][:dns_name] = $config.dns_name
  options
end
create_domain_url() click to toggle source
# File lib/moode_auto_deploy_kit/remote_domain.rb, line 14
def create_domain_url
  "#{remote_server}/domain"
end