class Trooper::Actions::RestartServerAction

Private Instance Methods

build_commands() click to toggle source
# File lib/trooper/actions/restart_server_action.rb, line 12
def build_commands
  cd application_path
  create_folder 'tmp'
  run 'touch tmp/restart.txt'
  run 'echo -e "Server restarted!"'
end