lib/ruby/terraform/tasks/all_tasks.rb in rake-terraform-wrapper-0.2.1 vs lib/ruby/terraform/tasks/all_tasks.rb in rake-terraform-wrapper-0.2.2
- old
+ new
@@ -18,9 +18,10 @@
dir_to_use = File.expand_path(build_dir ? "#{build_dir}/#{dir}" : dir)
if build_dir
task :pre_init do
rm_rf dir_to_use
+ mkdir_p dir_to_use
cp_r dir, dir_to_use
end
end
InitTask.new(configuration_name, :init => build_dir ? [:pre_init] : []) do |task|