Sha256: c926a6954a5c7d0841b731920505433fa2d205f289ad93cf7baec0af9f37c21a
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
require 'rails/generators' module Economy module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_initializer_file copy_file 'initializer.rb', 'config/initializers/economy.rb' end def create_configuration_file copy_file 'configuration.yml', 'config/redis.yml' end def create_migration_file migration_template 'migration.rb', 'db/migrate/create_exchanges.rb' end def self.next_migration_number(path) Time.now.utc.strftime '%Y%m%d%H%M%S' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
economy-4.0.2.2 | lib/generators/economy/install/install_generator.rb |
economy-4.0.2.1 | lib/generators/economy/install/install_generator.rb |