Sha256: b9fb63e1d855ff641367748621d4b9da50c2aec0f67a322991fd6f6ac204f731

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

module EasyWeibo
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc "EasyWeibo installation: initializer"
      source_root File.expand_path("../../templates", __FILE__)

      def install
        puts "==> generate initializer file ..."
        copy_initializer
        puts "Done!"
      end

      private

      def copy_initializer
        template "initializer.rb", "config/initializers/easy_weibo.rb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
easy_weibo-0.1.1 lib/generators/easy_weibo/install_generator.rb