Method: #run

Defined in:
lib/git_deploy/templates/before_restart.rb

#run(cmd) ⇒ Object



4
5
6
# File 'lib/git_deploy/templates/before_restart.rb', line 4

def run(cmd)
  exit($?.exitstatus) unless system "umask 002 && #{cmd}"
end