Thanks Tensibai! Regards From: Tensibai [mailto:
What Lamon is saying is do a LWRP (resource/provider) which does what is in your deploy.rb file, let's call it "cookbook_deploy", this mean it will be in a cookbook named "cookbook" and defined by a resources/deploy.rb to describe the resource and providers/deploy.rb for the code run when the resource is called. Now in your check_out recipe you will be able to define this deploy resource with an action :nothing and notify it from the git resource. Documentation on LWRP is here: https://docs.chef.io/release/12-4/custom_resources.html With the 12.5 versions this is simplified with the custom resources documented here: https://docs.chef.io/custom_resources.html Le 2015-10-09 07:23, jeffty a écrit :
|
Archive powered by MHonArc 2.6.16.