adds capistrano task to upload beta tester list
This commit is contained in:
11
lib/capistrano/tasks/beta_testers.cap
Normal file
11
lib/capistrano/tasks/beta_testers.cap
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
namespace :deploy do
|
||||||
|
desc "compiles assets locally then rsyncs"
|
||||||
|
task :beta_testers do
|
||||||
|
on roles(:app) do |role|
|
||||||
|
run_locally do
|
||||||
|
execute"rsync -av ./config/beta-testers.txt #{role.user}@#{role.hostname}:#{shared_path}/config/beta-testers.txt;"
|
||||||
|
end
|
||||||
|
"chmod -R 755 #{shared_path}/config/beta-testers.txt"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user