Class: Hanami::CLI::Commands::Command Private
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Hanami::CLI::Commands::Command
- Defined in:
- lib/hanami/cli/commands/command.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.
Abstract command
Direct Known Subclasses
Assets::Precompile, Console, Db::Apply, Db::Console, Db::Create, Db::Drop, Db::Migrate, Db::Prepare, Db::Rollback, Db::Version, Destroy::Action, Destroy::App, Destroy::Mailer, Destroy::Migration, Destroy::Model, Generate::Action, Generate::App, Generate::Mailer, Generate::Migration, Generate::Model, Generate::Secret, New, Routes, Server, Version
Defined Under Namespace
Modules: ClassMethods, InstanceMethods Classes: Renderer
Class Method Summary collapse
- .inherited(component) ⇒ Object private
Instance Method Summary collapse
-
#initialize(out: $stdout, files: Utils::Files) ⇒ Command
constructor
private
A new instance of Command.
Constructor Details
#initialize(out: $stdout, files: Utils::Files) ⇒ Command
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.
Returns a new instance of Command.
95 96 97 98 99 |
# File 'lib/hanami/cli/commands/command.rb', line 95 def initialize(out: $stdout, files: Utils::Files) @out = out @files = files @templates = Templates.new(self.class) end |
Class Method Details
.inherited(component) ⇒ 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.
23 24 25 26 27 28 29 30 31 |
# File 'lib/hanami/cli/commands/command.rb', line 23 def self.inherited(component) super component.class_eval do @_requirements = Concurrent::Array.new extend ClassMethods prepend InstanceMethods end end |