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