Start adding Hash like methods to state bag

This commit is contained in:
Chris Roberts 2021-11-18 15:13:19 -08:00 committed by Paul Hinze
parent 3cc92280f8
commit ed7f1fcd1e
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -15,6 +15,7 @@ module VagrantPlugins
)
client.get(req).value
end
alias_method :[], :get
# @param [String]
# @return [String, Boolean]
@ -34,6 +35,7 @@ module VagrantPlugins
)
client.put(req)
end
alias_method :[]=, :put
# @param [String]
# @return []
@ -43,6 +45,8 @@ module VagrantPlugins
)
client.remove(req)
end
alias_method :delete, :remove
end
end
end