Method: Awspec::Setup.generate_dotrspec

Defined in:
lib/awspec/setup.rb

.generate_dotrspecObject



69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/awspec/setup.rb', line 69

def self.generate_dotrspec
  content = <<-'EOF'
--color
--format documentation
EOF
  if File.exist? '.rspec'
    $stderr.puts '!! .rspec already exists'
  else
    File.open('.rspec', 'w') do |f|
      f.puts content
    end
    puts ' + .rspec'
  end
end