Sha256: 68e84737f2f2f866fede91368e275342f8b9728e67ee46be9a0f1bc7b1cadf45

Contents?: true

Size: 785 Bytes

Versions: 2

Compression:

Stored size: 785 Bytes

Contents

module VagrantPlugins
  module Registration
    module Action

      def self.action_register
        Vagrant::Action::Builder.new.tap do |b|
          b.use Register
        end
      end

      def self.action_unregister_on_halt
        Vagrant::Action::Builder.new.tap do |b|
          b.use UnregisterOnHalt
        end
      end

      def self.action_unregister_on_destroy
        Vagrant::Action::Builder.new.tap do |b|
          b.use UnregisterOnDestroy
        end
      end

      action_root = Pathname.new(File.expand_path("../action", __FILE__))
      autoload :Register, action_root.join("register")
      autoload :UnregisterOnHalt, action_root.join("unregister_on_halt")
      autoload :UnregisterOnDestroy, action_root.join("unregister_on_destroy")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-registration-0.0.19 lib/vagrant-registration/action.rb
vagrant-registration-0.0.18 lib/vagrant-registration/action.rb