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

Update triggers usage for Vagrant 2.1.0 #54

Merged
merged 2 commits into from
Jul 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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