Sha256: e4b2a3b9ad32dea674c85a9a11b0288f8b868239b0e3a5f58568833225939d6c
Contents?: true
Size: 608 Bytes
Versions: 19
Compression:
Stored size: 608 Bytes
Contents
require "rails/generators" module Rails module Command class GenerateCommand < Base # :nodoc: no_commands do def help require_application_and_environment! load_generators Rails::Generators.help self.class.command_name end end def perform(*) generator = args.shift return help unless generator require_application_and_environment! load_generators ARGV.shift Rails::Generators.invoke generator, args, behavior: :invoke, destination_root: Rails::Command.root end end end end
Version data entries
19 entries across 19 versions & 1 rubygems