Sha256: 0ef6426be6915c001397765e24e9933d0582978e1b466e412267335d703661fe

Contents?: true

Size: 513 Bytes

Versions: 10

Compression:

Stored size: 513 Bytes

Contents

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
epom-0.10.13 lib/generators/epom/config/config_generator.rb
epom-0.10.11 lib/generators/epom/config/config_generator.rb
epom-0.10.10 lib/generators/epom/config/config_generator.rb
epom-0.10.9 lib/generators/epom/config/config_generator.rb
epom-0.10.8 lib/generators/epom/config/config_generator.rb
epom-0.10.7 lib/generators/epom/config/config_generator.rb
epom-0.10.5 lib/generators/epom/config/config_generator.rb
epom-0.10 lib/generators/epom/config/config_generator.rb
epom-0.9.9 lib/generators/epom/config/config_generator.rb
epom-0.9.8 lib/generators/epom/config/config_generator.rb