Class: Vpsb::Resources::HasDoAccount

Inherits:
BaseResource show all
Includes:
AskSupport
Defined in:
lib/vpsb/resources/has_do_account.rb

Instance Method Summary collapse

Methods included from AskSupport

#ask, #ask_loop, #ask_to_confirm

Instance Method Details

#call(core) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/vpsb/resources/has_do_account.rb', line 8

def call(core)
  ask_to_confirm("Do you have account on DigitalOcean?") do ||
    unless 
      ask { puts 'Create new account via link: https://www.digitalocean.com/?refcode=71281f14ac3c. Press Enter when ready to continue' }
    end
  end

  true
end