Sha256: 1001fdd22fdc1dbdf5e6e024d51990f4b1a0801e6f0b70600818a8fcd00b6b06
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
module Adva module Generators class Install include Thor::Shell attr_reader :engines def initialize(engines) self.engines = engines end def invoke engines.each do |engine| engine.copy_migrations.each do |path| say_status('copy migration', File.basename(path), :green) end end end protected def engines=(engines) engines = Array(engines) engines = Adva.engines if engines.blank? || engines.include?(:all) engines = engines.map { |engine| engine.is_a?(Class) ? engine : Adva.const_get(engine.to_s.classify) } engines.unshift(Adva::Core) unless engines.include?(Adva::Core) @engines = engines.uniq end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
adva-core-0.0.2 | lib/adva/generators/install.rb |
adva-core-0.0.1 | lib/adva/generators/install.rb |