Module: Formatron::Generators::Bootstrap::EC2
- Defined in:
- lib/formatron/generators/bootstrap/ec2.rb
Overview
generates placeholder README.md
Class Method Summary collapse
Class Method Details
.write(directory) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/formatron/generators/bootstrap/ec2.rb', line 6 def self.write(directory) ec2_directory = File.join directory, 'config/_default/ec2' FileUtils.mkdir_p ec2_directory private_key = File.join ec2_directory, 'private_key' File.write private_key, <<-EOH.gsub(/^ {12}/, '') Remember to replace this file with the EC2 private key EOH end |