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 = []
|
triggers = []
|
||||||
if stage == :before
|
if stage == :before
|
||||||
triggers = config.before_triggers.select do |t|
|
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
|
end
|
||||||
elsif stage == :after
|
elsif stage == :after
|
||||||
triggers = config.after_triggers.select do |t|
|
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
|
end
|
||||||
else
|
else
|
||||||
raise Errors::TriggersNoStageGiven,
|
raise Errors::TriggersNoStageGiven,
|
||||||
|
|
Loading…
Reference in New Issue