Sha256: 94b007abeb8789502ecee06801da679549d08f933b8c67a9c1876a356718b1b8

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

module Multiauth
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)
      namespace 'multiauth'
      desc "initializes the required files"

      def copy_js
        copy_file "multiauth.js", "public/javascripts/multiauth.js"
      end

      def copy_openid
        directory "openid-realselector", "public/javascripts/openid-realselector"
      end

      def copy_twitter
        copy_file "devise_twitter.rb", "config/initializers/devise_twitter.rb"
      end

      def show_readme
        readme "README"
      end

      protected
    end
  end # Generators
end # Multiauth

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
multiauth-0.0.2 lib/generators/multiauth/multiauth_generator.rb
multiauth-0.0.1 lib/generators/multiauth/multiauth_generator.rb