Sha256: 6637a11bd508212f0eb1036dfccf6240e120be6f806dd26d0c8077085414e2d0

Contents?: true

Size: 246 Bytes

Versions: 2

Compression:

Stored size: 246 Bytes

Contents

require 'rails/generators'

class PigGenerator < Rails::Generators::Base

  def install_pig
    gem("pig")
    route("match '/revision', :to => Pig.new")
  end

  def self.source_root
    File.join(File.dirname(__FILE__), 'templates')
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pig-0.0.3 lib/generators/pig/pig_generator.rb
pig-0.0.2 lib/generators/pig/pig_generator.rb