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