Use inclunde? instead of any? for ruby 2.3
This commit is contained in:
parent
e7d07cb110
commit
7cdb32f642
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue