Class: InstallGerminatorGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/install_germinator_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_germinator_file_directoryObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/install_germinator_generator.rb', line 10

def add_germinator_file_directory
  file_directory = "#{Rails.root}/#{Germinator::SEED_PATH}"
  puts "Building directory structure..."
  unless File.directory?(file_directory)
    empty_directory(file_directory)
    puts "  Added: #{file_directory}"
  else
    puts "  Directory already exists: #{file_directory}"
  end
end

#add_germinator_version_tableObject



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

def add_germinator_version_table
  Germinator::Base.confirm_database_table
end