Permalink
Browse files

Rails 3 generators (purgeable:install)

  • Loading branch information...
1 parent eae3f49 commit 991530fcf4792e1b11fec5b1c2dc5470db146c06 @kawamanza kawamanza committed Mar 16, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 lib/generators/purgeable/install_generator.rb
@@ -0,0 +1,19 @@
+require 'rbconfig'
+
+module Purgeable
+ class InstallGenerator < ::Rails::Generators::Base
+
+ def generate
+ copy_file "purgeable.yml", "config/purgeable.yml"
+ end
+
+ def self.gem_root
+ File.expand_path("../../../../", __FILE__)
+ end
+
+ def self.source_root
+ File.join(gem_root, 'templates/install')
+ end
+
+ end
+end

0 comments on commit 991530f

Please sign in to comment.