Sha256: e4812f252486d058299ec1c142084467e27da1d387bc2ebe1a0c20304d394ba7

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

module Vagrant
  module Notify
    module Action
      class NotifyProvisioningStatus
        def initialize(app, env)
          @app = app
        end

        def call(env)
          system("notify-send '[#{env[:machine].name}] Provisioning with \"#{env[:provisioner_name]}\"...'")
          @app.call(env)
          system("notify-send '[#{env[:machine].name}] Finished provisioning with \"#{env[:provisioner_name]}\"'")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-notify-0.5.2 lib/vagrant-notify/action/notify_provisioning_status.rb
vagrant-notify-0.5.1 lib/vagrant-notify/action/notify_provisioning_status.rb
vagrant-notify-0.5.0 lib/vagrant-notify/action/notify_provisioning_status.rb
vagrant-notify-0.4.0 lib/vagrant-notify/action/notify_provisioning_status.rb