lib/builderator/tasks/berkshelf.rb in builderator-1.0.1 vs lib/builderator/tasks/berkshelf.rb in builderator-1.0.2
- old
+ new
@@ -41,10 +41,12 @@
command = "#{Interface.berkshelf.command} upload "
command << "-c #{Interface.berkshelf.berkshelf_config} "
command << "-b #{Interface.berkshelf.source}"
- run command
+ inside Interface.berkshelf.directory do
+ run command
+ end
end
desc 'uncache', 'Delete the Berkshelf cache'
def uncache
remove_dir File.join(ENV['HOME'], '.berkshelf/cookbooks')