class WcoHosting::Serverhost
def create_subdomain app
def create_subdomain app @obj = app Wco::Log.puts! @obj, '#create_subdomain...', obj: @obj client = DropletKit::Client.new(access_token: DO_TOKEN_1) record = DropletKit::DomainRecord.new( type: 'A', name: app.subdomain, data: app.serverhost.public_ip, ) client.domain_records.create(record, for_domain: app.domain ) Wco::Log.puts! record, 'created subdomain?', obj: @obj end