Class: DumpcarCommand
- Inherits:
-
Rails::Command::Base
- Object
- Rails::Command::Base
- DumpcarCommand
- Defined in:
- lib/rails/commands/dumpcar_command.rb
Instance Method Summary collapse
Instance Method Details
#dump ⇒ Object
5 6 7 8 9 10 |
# File 'lib/rails/commands/dumpcar_command.rb', line 5 def dump require "rails" (Rails.version < "7.1") ? require_application_and_environment! : boot_application! require "dumpcar" Dumpcar::Instance.new().dump end |
#restore ⇒ Object
13 14 15 16 17 18 |
# File 'lib/rails/commands/dumpcar_command.rb', line 13 def restore require "rails" (Rails.version < "7.1") ? require_application_and_environment! : boot_application! require "dumpcar" Dumpcar::Instance.new().restore end |