Use match over match? for Ruby 2.3

This commit is contained in:
Brian Cain 2018-04-20 12:24:32 -07:00
parent a1ca29c5e4
commit daffd87200
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ module Vagrant
match = false
if trigger.only_on
trigger.only_on.each do |o|
if o.match?(guest_name)
if o.match(guest_name)
# trigger matches on current guest, so we're fine to use it
match = true
break