Class: Dunlop::Install::TargetFilesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Generators::GeneratorHelpers, Rails::Generators::Migration
Defined in:
lib/generators/dunlop/install/target_files/target_files_generator.rb

Instance Method Summary collapse

Methods included from Generators::GeneratorHelpers

#inject_before_last_end

Instance Method Details

#setup_target_files_with_other_nameObject



8
9
10
11
12
13
# File 'lib/generators/dunlop/install/target_files/target_files_generator.rb', line 8

def setup_target_files_with_other_name
  copy_file "rspec/target_files_factory.rb", "spec/factories/target_files.rb"
  copy_file "models/target_file.rb", "app/models/target_file.rb"
  migration_template "migrations/create_target_files.rb", "db/migrate/create_target_files.rb"
  directory "locales", "config/locales"
end