Sha256: a169ac112e74d9e6c5761030eab7bbde7e9b4aec2112e389ec7674dfd8b13b64

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

# encoding: utf-8

module Baidupush
  # Your code goes here...
  module Generators
    class ConfigGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      desc "Creates a baidu_cloud_push configuration file at config/baidu_push.yml"

      def generate_config
        p "Come in!"
        template 'baidu_cloud_push.yml', File.join('config', 'baidu_cloud_push.yml')
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Baidupush-0.0.7 lib/rails/generators/baidupush/config/config_generator.rb
Baidupush-0.0.6 lib/rails/generators/baidupush/config/config_generator.rb