Sha256: 5685ca6d111290bbe9e2601a4ea7dde082f6b652ed70b80afcf69268943b32a2

Contents?: true

Size: 611 Bytes

Versions: 10

Compression:

Stored size: 611 Bytes

Contents

module EpomRails
	class ConfigGenerator < Rails::Generators::Base
	  source_root File.expand_path('../templates', __FILE__)

	  	def copy_epom_rails_file
	        template 'epom_rails.rb', 'config/initializers/epom_rails.rb'
	        if File.exist?('.gitignore')
	        	File.open('.gitignore','a'){|f| f.write("\nconfig/initializers/epom_rails.rb")}
	        end
	        if File.exist?('../../.gitignore')
	        	File.open('../../.gitignore','a'){|f| f.write("\ntest/dummy/config/initializers/epom_rails.rb")}
	        end
	   	end

	   	def epom_generator
	   		generate 'epom:config'
	   	end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
epom_rails-1.4.4 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.4.2 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.4.1 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.4.0 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.3.6 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.3.5 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.3.2 lib/generators/epom_rails/config/config_generator.rb
epom_rails-1.0.0 lib/generators/epom_rails/config/config_generator.rb
epom_rails-0.4.9 lib/generators/epom_rails/config/config_generator.rb
epom_rails-0.4.8 lib/generators/epom_rails/config/config_generator.rb