Sha256: d68ba9614b763c17c4cb680fc90c171a716c5967760c29192fe3e49c1a12c690
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 Bytes
Contents
require "log4r" module VagrantPlugins module Vmpooler module Action # This reboots a running server, if there is one. class RebootServer def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_vmpooler::action::reboot_server") end def call(env) if env[:machine].id env[:ui].info(I18n.t("vagrant_vmpooler.rebooting_server")) end @app.call(env) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems