-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Berkshelf 3.x Integration #109
Comments
@ehaselwanter this is covered by #85 - @sethvargo is going to have a look at Berkshelf 3 support in Spork once Berkshelf 3 has hit stable release status. Going to close this as a dupe for now - keep an eye on #85 for progress :) |
@sethvargo what is the correct substitution for cookbook = Berkshelf.ui.mute {
self.config[:skip_dependencies] ||= false
berksfile.resolve(lockfile.find(name), {skip_dependencies: self.config[:skip_dependencies]})[:solution].first
} in berkshelf 3.x (there is no resolve) and lockfile = ::Berkshelf::Lockfile.from_berksfile(berksfile)
::Chef:: CookbookLoader.new(File.dirname(lockfile.find(name).cached_cookbook.path))[name] does get me the cookbook but can not be loaded with the |
This may be heading in the wrong direction, but I've been trying to make progress at this as well. I have the following which seems to load the cached cookbook... def load_from_berkshelf(name)
return unless defined?(::Berkshelf)
berksfile = ::Berkshelf::Berksfile.from_file(self.config[:berksfile])
lockfile = ::Berkshelf::Lockfile.from_berksfile(berksfile)
raise Berkshelf::BerkshelfError, "LockFileNotFound" unless File.exists?(lockfile.filepath)
cookbook = lockfile.retrieve(name)
#convert Berkshelf::CachedCookbook to Chef::CookbookVersion
::Chef::CookbookLoader.new(File.dirname(cookbook.path))[File.basename(cookbook.path)] |
relates to #130 |
Fix copied from mjuarez post here: jonlives#109 ongoing other issue jonlives#130
This is still an issue in 1.6.0, and masks problems in the The specific issue I had was not having my Maybe it'd help to add feedback in |
is there anybody working on this. or does nobody use berkshelf with spork.
I can do a
but this is not what I want to do, and I get
with this
The text was updated successfully, but these errors were encountered: