Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #54 from palantirnet/update-triggers
Browse files Browse the repository at this point in the history
Update triggers usage for Vagrant 2.1.0
  • Loading branch information
becw authored Jul 30, 2018
2 parents 4e671a4 + defee50 commit 1b5e4a2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions conf/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

%w{ vagrant-hostmanager vagrant-auto_network vagrant-triggers }.each do |plugin|
Vagrant.require_version ">= 2.1.0"

%w{ vagrant-hostmanager vagrant-auto_network }.each do |plugin|
unless Vagrant.has_plugin?(plugin)
raise "#{plugin} plugin is not installed. Please install with: vagrant plugin install #{plugin}"
end
Expand Down Expand Up @@ -70,8 +72,11 @@ Vagrant.configure(2) do |config|
end
end

config.trigger.before [:up, :reload] do
run "composer install --ignore-platform-reqs"
config.trigger.before [:up, :reload] do |trigger|
trigger.name = "Composer Install"
trigger.run = {
inline: "composer install --ignore-platform-reqs"
}
end

end

0 comments on commit 1b5e4a2

Please sign in to comment.