class Monolith::DefaultLocation
Public Instance Methods
install()
click to toggle source
# File lib/monolith/locations/default.rb, line 4 def install # For now we just copy any community cookbooks. It would be nice to be # able to grab them from the source URL, but that isn't readily # accessible, and then you have to guess how to check it out. if File.directory?(@destination) rel_dest = Monolith.formatter.rel_dir(@destination) Monolith.formatter.skip(@cookbook, "#{rel_dest} already exists") else Monolith.formatter.install(@cookbook, @destination) FileUtils.cp_r(@cookbook.path, @destination) end true end
update()
click to toggle source
# File lib/monolith/locations/default.rb, line 18 def update # There isn't anything to do for updating a community cookbook except # blowing it away and recreating it. For the moment I'm opting not to do # that (it may be able ot be an option later) Monolith.formatter.skip(@cookbook, "Not updating community cookbook") nil end