Sha256: b39e4382f3660afe01c12c3763eefd65a632b0d08cf0af61a9d599cf871df627

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

require 'vagrant'
require 'socket'
require 'erb'
require 'ostruct'

if File.exists?(File.join(File.expand_path('../../', __FILE__), '.git'))
  $:.unshift(File.expand_path('../../lib', __FILE__))
end

require 'vagrant-notify/middleware'
require 'vagrant-notify/server'
require 'vagrant-notify/vagrant_ssh_ext'
require "vagrant-notify/version"

module Vagrant
  module Notify
    class << self
      def files_path
        @file_path ||= File.expand_path(File.dirname(__FILE__) + '/../files')
      end
    end
  end
end

Vagrant.actions[:start].tap do |start|
  start.insert_after Vagrant::Action::VM::Boot,                Vagrant::Notify::Middleware::StartServer
  start.insert_after Vagrant::Notify::Middleware::StartServer, Vagrant::Notify::Middleware::InstallCommand
end
Vagrant.actions[:resume].tap do |start|
  start.use Vagrant::Notify::Middleware::StartServer
  start.use Vagrant::Notify::Middleware::InstallCommand
end
Vagrant.actions[:halt].use      Vagrant::Notify::Middleware::StopServer
Vagrant.actions[:suspend].use   Vagrant::Notify::Middleware::StopServer
Vagrant.actions[:provision].use Vagrant::Notify::Middleware::InstallCommand

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-notify-0.1.0 lib/vagrant-notify.rb