Sha256: 950f4bb04ce0c7bd13174bd58aec07856dd9667e7f3b31daa96a50fd03d1ae14
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' require 'rails/generators/active_record/migration' module WizardOfAwes class InstallGenerator < Rails::Generators::Base desc "Installs Wizard Of Awes and generates the migration" include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../templates', __FILE__) def self.next_migration_number(dirname) Time.now.strftime("%Y%m%d%H%M%S") end def copy_initializer template 'wizard_of_awes.rb.erb', 'config/initializers/wizard_of_awes.rb' end def create_migration_file migration_template 'create_helper_snippets.rb', 'db/migrate/create_helper_snippets.rb' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wizard_of_awes-0.0.2 | lib/generators/wizard_of_awes/install/install_generator.rb |
wizard_of_awes-0.0.1 | lib/generators/wizard_of_awes/install/install_generator.rb |