Sha256: 0ba92d1cd4f9ee5e9f380d00c6dd8cc6c9f949a97520dff7c6fac529d0056140

Contents?: true

Size: 282 Bytes

Versions: 7

Compression:

Stored size: 282 Bytes

Contents

require 'rails/generators'

module Mashery
  class InstallGenerator < Rails::Generators::Base
    def create_initializer_file
      config = %Q{---\nsite_id: '123'\nkey: "abc"\nsecret: "xyz"\nhost: "api.mashery.com"}
      create_file "config/mashery.yml", config
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mashery_rails-0.6.9.pre4 lib/mashery/generator.rb
mashery_rails-0.6.9.pre3 lib/mashery/generator.rb
mashery_rails-0.6.9.pre1 lib/mashery/generator.rb
mashery_rails-0.6.8 lib/mashery/generator.rb
mashery_rails-0.6.7 lib/mashery/generator.rb
mashery_rails-0.6.6 lib/mashery/generator.rb
mashery_rails-0.6.3 lib/mashery/generator.rb