Class: Vpsb::Resources::HasDoAccount
- Inherits:
-
BaseResource
- Object
- BaseResource
- Vpsb::Resources::HasDoAccount
- 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 |has_account| unless has_account ask { puts 'Create new account via link: https://www.digitalocean.com/?refcode=71281f14ac3c. Press Enter when ready to continue' } end end true end |