lib/cookbook-omnifetch/base.rb in cookbook-omnifetch-0.1.0 vs lib/cookbook-omnifetch/base.rb in cookbook-omnifetch-0.2.0
- old
+ new
@@ -33,9 +33,17 @@
def cached_cookbook
raise AbstractFunction,
"#cached_cookbook must be implemented on #{self.class.name}!"
end
+ # A representation of this location suitable for a lockfile, given as a Hash
+ #
+ # @return [Hash]
+ def lock_data
+ raise AbstractFunction,
+ "#to_lock must be implemented on #{self.class.name}!"
+ end
+
# The lockfile representation of this location.
#
# @return [string]
def to_lock
raise AbstractFunction,