# File lib/serverspec/setup.rb, line 159 def self.safe_create_rakefile content = "require 'rake'\nrequire 'rspec/core/rake_task'\n\nRSpec::Core::RakeTask.new(:spec) do |t|\nt.pattern = 'spec/*/*_spec.rb'\nend\n\ntask :default => :spec\n" if File.exists? 'Rakefile' old_content = File.read('Rakefile') if old_content != content $stderr.puts '!! Rakefile already exists and differs from template' end else File.open('Rakefile', 'w') do |f| f.puts content end puts ' + Rakefile' end end