Class: Adva::Generators::Install
- Inherits:
-
Object
- Object
- Adva::Generators::Install
- Includes:
- Thor::Shell
- Defined in:
- lib/adva/generators/install.rb
Instance Attribute Summary collapse
-
#engines ⇒ Object
readonly
Returns the value of attribute engines.
Instance Method Summary collapse
-
#initialize(engines) ⇒ Install
constructor
A new instance of Install.
- #invoke ⇒ Object
Constructor Details
#initialize(engines) ⇒ Install
Returns a new instance of Install.
8 9 10 |
# File 'lib/adva/generators/install.rb', line 8 def initialize(engines) self.engines = engines end |
Instance Attribute Details
#engines ⇒ Object
Returns the value of attribute engines.
6 7 8 |
# File 'lib/adva/generators/install.rb', line 6 def engines @engines end |
Instance Method Details
#invoke ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/adva/generators/install.rb', line 12 def invoke engines.each do |engine| engine.new.copy_migrations.each do |path| say_status('copy migration', File.basename(path), :green) end end end |