Sha256: 7fd07be8c11dd225cf144771a7446cb36f7ffa3fc9c256ba68aa6c64c1682f06

Contents?: true

Size: 573 Bytes

Versions: 15

Compression:

Stored size: 573 Bytes

Contents

module Wobauth
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)
      
      desc "Copy locale files to your application"
      def copy_locale
        ['en', 'de'].each do |lang|
          copy_file "../../../config/locales/#{lang}.yml", 
                    "config/locales/wobauth.#{lang}.yml"
        end
      end

      desc "create initializer"
      def copy_initializer
        copy_file "initializers/wobauth.rb", "config/initializers/wobauth.rb"
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wobauth-6.0.1 lib/generators/wobauth/install_generator.rb
wobauth-6.0.0 lib/generators/wobauth/install_generator.rb
wobauth-5.1.3 lib/generators/wobauth/install_generator.rb
wobauth-5.1.2 lib/generators/wobauth/install_generator.rb
wobauth-5.1.1 lib/generators/wobauth/install_generator.rb
wobauth-5.1.0 lib/generators/wobauth/install_generator.rb
wobauth-5.0.2 lib/generators/wobauth/install_generator.rb
wobauth-5.0.1 lib/generators/wobauth/install_generator.rb
wobauth-5.0.0 lib/generators/wobauth/install_generator.rb
wobauth-4.0.0 lib/generators/wobauth/install_generator.rb
wobauth-3.4.8 lib/generators/wobauth/install_generator.rb
wobauth-3.4.7 lib/generators/wobauth/install_generator.rb
wobauth-3.4.6 lib/generators/wobauth/install_generator.rb
wobauth-3.4.5 lib/generators/wobauth/install_generator.rb
wobauth-3.4.4 lib/generators/wobauth/install_generator.rb