Method: Awspec::Setup.generate_dotgitignore

Defined in:
lib/awspec/setup.rb

.generate_dotgitignoreObject



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/awspec/setup.rb', line 55

def self.generate_dotgitignore
  content = <<-'EOF'
secrets.yml
EOF
  if File.exist? 'spec/.gitignore'
    $stderr.puts '!! spec/.gitignore already exists'
  else
    File.open('spec/.gitignore', 'w') do |f|
      f.puts content
    end
    puts ' + spec/.gitignore'
  end
end