generators/porter/porter_generator.rb in porter-0.1.4 vs generators/porter/porter_generator.rb in porter-0.1.5
- old
+ new
@@ -7,12 +7,13 @@
def manifest
@app = Dir.glob(RAILS_ROOT).to_s.split('/').last
@domain = @app + (@app.include?('.') ? '' : '.com')
record do |m|
- m.template 'porter_config.yml', File.join('config', 'porter_config.yml')
- m.template 'porter.rake', File.join('lib', 'tasks', 'porter.rake')
- m.append_to 'config/deploy.rb', "\n\nrequire 'porter'"
+ m.template 'porter_config.yml', File.join('config', 'porter_config.yml')
+ m.template 'porter.rb', File.join('lib', 'tasks', 'porter.rb')
+ m.append_to 'config/deploy.rb', "require 'porter'"
+ m.append_to 'Rakefile', "require 'tasks/porter'"
end
end
end
\ No newline at end of file