Use inclunde? instead of any? for ruby 2.3

This commit is contained in:
Brian Cain 2018-04-03 15:32:19 -07:00
parent e7d07cb110
commit 7cdb32f642
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 2 additions and 2 deletions

View File

@ -36,11 +36,11 @@ module Vagrant
triggers = []
if stage == :before
triggers = config.before_triggers.select do |t|
t.command == action || (t.command == :all && !t.ignore.any?(action))
t.command == action || (t.command == :all && !t.ignore.include?(action))
end
elsif stage == :after
triggers = config.after_triggers.select do |t|
t.command == action || (t.command == :all && !t.ignore.any?(action))
t.command == action || (t.command == :all && !t.ignore.include?(action))
end
else
raise Errors::TriggersNoStageGiven,