Sha256: 6637be6c3dc18d0da751c605e29c2c8c1e7148814968a844066bb1cd5795e7c8

Contents?: true

Size: 769 Bytes

Versions: 25

Compression:

Stored size: 769 Bytes

Contents

class SocialStream::Oauth2Server::InstallGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  
  source_root File.expand_path('../templates', __FILE__)

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

  def require_javascripts
    inject_into_file 'app/assets/javascripts/application.js',
                     "//= require social_stream-oauth2_server\n",
                     :before => '//= require_tree .'
  end

  def require_stylesheets
    append_file 'app/assets/stylesheets/social_stream.css.sass',
                "@import social_stream-oauth2_server\n"
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-2.2.2 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.2.2 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.2.1 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.2.1 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.2.0 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.2.0 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.1.1 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.1.1 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.1.0 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.1.0 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.0.4 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.0.3 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.0.3 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.0.2 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.0.2 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.0.1 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.0.1 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.0.0 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-oauth2_server-2.0.0 lib/generators/social_stream/oauth2_server/install_generator.rb
social_stream-2.0.0.beta3 oauth2_server/lib/generators/social_stream/oauth2_server/install_generator.rb