Set sample hook permissions and preserve when copying
This commit is contained in:
@@ -137,7 +137,7 @@ class Mrsk::Cli::Main < Mrsk::Cli::Base
|
|||||||
unless (hooks_dir = Pathname.new(File.expand_path(".mrsk/hooks"))).exist?
|
unless (hooks_dir = Pathname.new(File.expand_path(".mrsk/hooks"))).exist?
|
||||||
hooks_dir.mkpath
|
hooks_dir.mkpath
|
||||||
Pathname.new(File.expand_path("templates/sample_hooks", __dir__)).each_child do |sample_hook|
|
Pathname.new(File.expand_path("templates/sample_hooks", __dir__)).each_child do |sample_hook|
|
||||||
FileUtils.cp sample_hook, hooks_dir
|
FileUtils.cp sample_hook, hooks_dir, preserve: true
|
||||||
end
|
end
|
||||||
puts "Created sample hooks in .mrsk/hooks"
|
puts "Created sample hooks in .mrsk/hooks"
|
||||||
end
|
end
|
||||||
|
|||||||
0
lib/mrsk/cli/templates/sample_hooks/post-deploy.sample
Normal file → Executable file
0
lib/mrsk/cli/templates/sample_hooks/post-deploy.sample
Normal file → Executable file
0
lib/mrsk/cli/templates/sample_hooks/post-rollback.sample
Normal file → Executable file
0
lib/mrsk/cli/templates/sample_hooks/post-rollback.sample
Normal file → Executable file
Reference in New Issue
Block a user