Sha256: 459a8ad3bb998cd163c3050663fef91bc317f78146dbbdd087f901aa1ef38720

Contents?: true

Size: 519 Bytes

Versions: 17

Compression:

Stored size: 519 Bytes

Contents

require 'rails/generators/base'

module CanPlay
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Creates a can_play initializer and copy locale files to your application."

      def copy_initializer
        template "can_play.rb", "config/initializers/can_play.rb"
      end

      def copy_locale
        copy_file "../../../config/locales/zh-Cn.yml", "config/locales/can_play.zh-CN.yml"
      end

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
can_play-0.4.0 lib/generators/can_play/install_generator.rb
can_play-0.3.1 lib/generators/can_play/install_generator.rb
can_play-0.3.0 lib/generators/can_play/install_generator.rb
can_play-0.2.9 lib/generators/can_play/install_generator.rb
can_play-0.2.8 lib/generators/can_play/install_generator.rb
can_play-0.2.7 lib/generators/can_play/install_generator.rb
can_play-0.2.6 lib/generators/can_play/install_generator.rb
can_play-0.2.5 lib/generators/can_play/install_generator.rb
can_play-0.2.4 lib/generators/can_play/install_generator.rb
can_play-0.2.3 lib/generators/can_play/install_generator.rb
can_play-0.2.2 lib/generators/can_play/install_generator.rb
can_play-0.2.1 lib/generators/can_play/install_generator.rb
can_play-0.2.0 lib/generators/can_play/install_generator.rb
can_play-0.1.9 lib/generators/can_play/install_generator.rb
can_play-0.1.8 lib/generators/can_play/install_generator.rb
can_play-0.1.7 lib/generators/can_play/install_generator.rb
can_play-0.1.6 lib/generators/can_play/install_generator.rb