Sha256: b370ebc17722fce27b146a5b2d16c9d58c66197a4872c8a15dd4e193eb4b3c6f
Contents?: true
Size: 482 Bytes
Versions: 40
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Rails module Command class NewCommand < Base # :nodoc: self.bin = "rails" no_commands do def help Rails::Command.invoke :application, [ "--help" ] end end def perform(*) say "Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first.\n" say "Type 'rails' for help." exit 1 end end end end
Version data entries
40 entries across 40 versions & 5 rubygems