lib/berkshelf/locations/site_location.rb in berkshelf-1.0.0.rc1 vs lib/berkshelf/locations/site_location.rb in berkshelf-1.0.0.rc2
- old
+ new
@@ -55,20 +55,20 @@
self.class.unpack(downloaded_tf.path, dir)
FileUtils.mv(File.join(dir, name), cb_path)
cached = CachedCookbook.from_store_path(cb_path)
validate_cached(cached)
-
+
set_downloaded_status(true)
cached
end
# Returns a hash of all the cookbook versions found at communite site URL for the cookbook
# name of this location.
#
# @example
- # {
+ # {
# "0.101.2" => "http://cookbooks.opscode.com/api/v1/cookbooks/nginx/versions/0_101_2",
# "0.101.0" => "http://cookbooks.opscode.com/api/v1/cookbooks/nginx/versions/0_101_0"
# }
#
# @return [Hash]
@@ -140,10 +140,10 @@
#
# @return [Array]
def target_version
if version_constraint
solution = self.class.solve_for_constraint(version_constraint, versions)
-
+
unless solution
raise NoSolution, "No cookbook version of '#{name}' found at #{self} that would satisfy constraint (#{version_constraint})."
end
solution