Class: Hanami::CLI::Commands::App::DB::Seed Private
- Inherits:
-
Command
- Object
- Dry::CLI::Command
- Hanami::CLI::Command
- Command
- Hanami::CLI::Commands::App::DB::Seed
- Defined in:
- lib/hanami/cli/commands/app/db/seed.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- FILE_PATH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"db/seeds.rb"
Constants inherited from Command
Instance Method Summary collapse
- #call ⇒ Object private
Methods inherited from Command
#app, #database, #database_config, inherited, #measure, #run_command
Methods inherited from Hanami::CLI::Command
Constructor Details
This class inherits a constructor from Hanami::CLI::Command
Instance Method Details
#call ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 21 22 23 24 25 26 |
# File 'lib/hanami/cli/commands/app/db/seed.rb', line 18 def call(**) if has_file? measure "seed data loaded from #{FILE_PATH}" do load full_file_path end else out.puts "=> #{FILE_PATH} not found" end end |