Class: Adva::Generators::Install

Inherits:
Object
  • Object
show all
Includes:
Thor::Shell
Defined in:
lib/adva/generators/install.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#enginesObject

Returns the value of attribute engines


6
7
8
# File 'lib/adva/generators/install.rb', line 6

def engines
  @engines
end

Instance Method Details

#invokeObject


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