Sha256: 08eb3c8edcb4022e49c8d70f06a73e55ed8745cbb67b794552cfc27b1ab38cb8
Contents?: true
Size: 616 Bytes
Versions: 4
Compression:
Stored size: 616 Bytes
Contents
require "log4r" module VagrantPlugins module OpenStack module Action # This starts the pause server, if there is one. class UnpauseServer def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_openstack::action::unpause_server") end def call(env) if env[:machine].id env[:ui].info(I18n.t("vagrant_openstack.unpausing_server")) server = env[:openstack_compute].servers.get(env[:machine].id) server.unpause end @app.call(env) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems