Sha256: f8563c6468b7208a118be5781def306e7381c7b0672843b5ba4d05994af2fa6e

Contents?: true

Size: 462 Bytes

Versions: 19

Compression:

Stored size: 462 Bytes

Contents

module Vpsb
  module Resources
    class HasDoAccount < BaseResource
      include AskSupport

      res :has_do_account

      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
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
vpsb-1.1.8 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.7 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.6 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.5 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.4 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.3 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.2 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.1 lib/vpsb/resources/has_do_account.rb
vpsb-1.1.0 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.9 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.8 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.7 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.6 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.5 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.4 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.3 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.2 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.1 lib/vpsb/resources/has_do_account.rb
vpsb-1.0.0 lib/vpsb/resources/has_do_account.rb