vagrant/plugins/providers/hyperv/action/message_not_running.rb

23 lines
583 B
Ruby

#-------------------------------------------------------------------------
# Copyright (c) Microsoft Open Technologies, Inc.
# All Rights Reserved. Licensed under the MIT License.
#--------------------------------------------------------------------------
require "log4r"
module VagrantPlugins
module HyperV
module Action
class MessageNotRunning
def initialize(app, env)
@app = app
end
def call(env)
env[:ui].info("Machine is not running, Please turn it on.")
@app.call(env)
end
end
end
end
end