Sha256: a3d2746d270c284d51fb6dfcb3cb7faecff18df83a1af78f87ce26e3e62d3dd5

Contents?: true

Size: 512 Bytes

Versions: 62

Compression:

Stored size: 512 Bytes

Contents

module VagrantPlugins
  module DockerProvider
    module Action
      class Stop
        def initialize(app, env)
          @app = app
        end

        def call(env)
          machine = env[:machine]
          driver  = machine.provider.driver
          if driver.running?(machine.id)
            env[:ui].info I18n.t("docker_provider.messages.stopping")
            driver.stop(machine.id, machine.provider_config.stop_timeout)
          end
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

62 entries across 55 versions & 7 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/providers/docker/action/stop.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/providers/docker/action/stop.rb