# File lib/couchrest/commands/generate.rb, line 65
      def self.write(filename, contents)
        puts "Writing #{filename}"
        File.open(filename, "w") do |f|
          # Remove leading spaces
          contents.gsub!(/^        (  )?/, '')
          f.write contents
        end
      end