Sha256: b5cb23fc83f88eb42821c093f9c469d29b575e0c7734706f958174349e51f4ea
Contents?: true
Size: 522 Bytes
Versions: 8
Compression:
Stored size: 522 Bytes
Contents
require 'vagrant-vultr/helpers/client' module VagrantPlugins module Vultr module Action class PowerOff include Helpers::Client def initialize(app, env) @app = app @machine = env[:machine] @client = client @logger = Log4r::Logger.new('vagrant::vultr::power_off') end def call(env) @client.stop_server(@machine.id) env[:ui].info 'Machine is stopped.' @app.call(env) end end end end end
Version data entries
8 entries across 8 versions & 3 rubygems