Sha256: ded775c27acacfd0d58488392c30a9914efe2c1095b0ea7e47a3380dc276efc1
Contents?: true
Size: 1.97 KB
Versions: 11
Compression:
Stored size: 1.97 KB
Contents
module Berkshelf module Vagrant # @author Jamie Winsor <jamie@vialstudios.com> # # Middleware stacks for use with Vagrant module Middleware class << self # Return the Berkshelf install middleware stack. When placed in the action chain # this stack will find retrieve and resolve the cookbook dependencies describe # in your configured Berksfile. # # Cookbooks will installed into a temporary directory, called a Shelf, and mounted # into the VM. This mounted path will be appended to the chef_solo.cookbooks_path value. # # @return [::Vagrant::Action::Builder] def install @install ||= ::Vagrant::Action::Builder.new do use Berkshelf::Vagrant::Action::SetUI use Berkshelf::Vagrant::Action::Install end end # Return the Berkshelf upload middleware stack. When placed in the action chain # this stack will upload cookbooks to a Chef Server if the Chef-Client provisioner # is used. The Chef Server where the cookbooks will be uploaded to is the same Chef # Server used in the Chef-Client provisioner. # # Nothing will be done if the Chef-Solo provisioner is used. # # @return [::Vagrant::Action::Builder] def upload @upload ||= ::Vagrant::Action::Builder.new do use Berkshelf::Vagrant::Action::SetUI use Berkshelf::Vagrant::Action::Upload end end # Return the Berkshelf clean middleware stack. When placed in the action chain # this stack will clean up any temporary directories or files created by the other # middleware stacks. # # @return [::Vagrant::Action::Builder] def clean @clean ||= ::Vagrant::Action::Builder.new do use Berkshelf::Vagrant::Action::SetUI use Berkshelf::Vagrant::Action::Clean end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems