Merge pull request #9 from patcon/9-vagrantplugins-namespace
Move to VagrantPlugins top-level namespace
This commit is contained in:
commit
c9deee0aa7
13 changed files with 15 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
require_relative 'bucket'
|
||||
|
||||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Action
|
||||
class Install
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Bucket
|
||||
def self.inherited(base)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Bucket
|
||||
class Apt < Bucket
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Bucket
|
||||
class Gem < Bucket
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Bucket
|
||||
class Pacman < Bucket
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Bucket
|
||||
class Yum < Bucket
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
module Cap
|
||||
module Arch
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
module Cap
|
||||
module Debian
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
module Cap
|
||||
module Linux
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
module Cap
|
||||
module RedHat
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Config < Vagrant.plugin(2, :config)
|
||||
attr_accessor :scope, :auto_detect
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
class Plugin < Vagrant.plugin('2')
|
||||
name 'vagrant-cachier'
|
||||
|
@ -30,14 +30,14 @@ module Vagrant
|
|||
|
||||
install_action_hook = lambda do |hook|
|
||||
require_relative 'action'
|
||||
hook.after Vagrant::Action::Builtin::Provision, Vagrant::Cachier::Action::Install
|
||||
hook.after Vagrant::Action::Builtin::Provision, VagrantPlugins::Cachier::Action::Install
|
||||
end
|
||||
action_hook 'set-shared-cache-on-machine-up', :machine_action_up, &install_action_hook
|
||||
action_hook 'set-shared-cache-on-machine-reload', :machine_action_reload, &install_action_hook
|
||||
|
||||
clean_action_hook = lambda do |hook|
|
||||
require_relative 'action'
|
||||
hook.before Vagrant::Action::Builtin::GracefulHalt, Vagrant::Cachier::Action::Clean
|
||||
hook.before Vagrant::Action::Builtin::GracefulHalt, VagrantPlugins::Cachier::Action::Clean
|
||||
end
|
||||
action_hook 'remove-guest-symlinks-on-machine-halt', :machine_action_halt, &clean_action_hook
|
||||
action_hook 'remove-guest-symlinks-on-machine-package', :machine_action_package, &clean_action_hook
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Vagrant
|
||||
module VagrantPlugins
|
||||
module Cachier
|
||||
VERSION = "0.0.6"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue