Sha256: 77e6cb821618d671f95039bad18ab2e635958f94ea788a66a6b75b2e7dfe4812

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 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')
	        	inject_into_file '.gitignore', after: "/.bundle" do "\nconfig/initializers/epom_rails.rb" end
	        end
	   	end

	   	def epom_generator
	   		generate 'epom:config'
	   	end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
epom_rails-0.4.7 lib/generators/epom_rails/config/config_generator.rb
epom_rails-0.4.6 lib/generators/epom_rails/config/config_generator.rb