Class: SocialStream::Ostatus::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/social_stream/ostatus/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#config_initializerObject


13
14
15
# File 'lib/generators/social_stream/ostatus/install_generator.rb', line 13

def config_initializer
  copy_file 'initializer.rb', 'config/initializers/social_stream-ostatus.rb'
end

#create_migration_fileObject


6
7
8
9
10
11
# File 'lib/generators/social_stream/ostatus/install_generator.rb', line 6

def create_migration_file
  require 'rake'
  Rails.application.load_tasks
  Rake::Task['railties:install:migrations'].reenable
  Rake::Task['social_stream_ostatus_engine:install:migrations'].invoke
end