Sha256: 73f4f8b2e2e05fd9ef254e5d7aca7d6ff13e3301f377ffaa22269432ac49e426
Contents?: true
Size: 393 Bytes
Versions: 40
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true module Rails module Command class RestartCommand < Base # :nodoc: desc "restart", "Restart app by touching tmp/restart.txt" def perform require "fileutils" FileUtils.mkdir_p Rails::Command.application_root.join("tmp") FileUtils.touch Rails::Command.application_root.join("tmp/restart.txt") end end end end
Version data entries
40 entries across 40 versions & 5 rubygems