Sha256: 35804b9437bde41a308e812ce5bf8521851e29c4a1606c948c365b33565f47f5
Contents?: true
Size: 748 Bytes
Versions: 8
Compression:
Stored size: 748 Bytes
Contents
require 'vagrant-vultr/helpers/client' module VagrantPlugins module Vultr module Action class PowerOn include Helpers::Client def initialize(app, env) @app = app @machine = env[:machine] @client = client @logger = Log4r::Logger.new('vagrant::vultr::power_on') end def call(env) @client.start_server(@machine.id) env[:ui].info 'Waiting for server to start...' @client.wait_to_power_on(@machine.id) env[:ui].info 'Waiting for SSH to become active...' @client.wait_for_ssh(@machine) env[:ui].info 'Machine is booted and ready to use!' @app.call(env) end end end end end
Version data entries
8 entries across 8 versions & 3 rubygems