class Economy::Generators::InstallGenerator

Public Class Methods

next_migration_number(path) click to toggle source
# File lib/generators/economy/install/install_generator.rb, line 22
def self.next_migration_number(path)
  Time.now.utc.strftime '%Y%m%d%H%M%S'
end

Public Instance Methods

add_create_exchanges_file() click to toggle source
# File lib/generators/economy/install/install_generator.rb, line 18
def add_create_exchanges_file
  migration_template 'create_exchanges.rb', 'db/migrate/create_exchanges.rb'
end
add_economy_file() click to toggle source
# File lib/generators/economy/install/install_generator.rb, line 10
def add_economy_file
  copy_file 'economy.rb', 'config/initializers/economy.rb'
end
add_redis_file() click to toggle source
# File lib/generators/economy/install/install_generator.rb, line 14
def add_redis_file
  copy_file 'redis.yml', 'config/redis.yml'
end