Skip to content

Instantly share code, notes, and snippets.

@tdooner
Created February 17, 2015 22:36
Show Gist options
  • Save tdooner/85febab03eed25967d2a to your computer and use it in GitHub Desktop.
Save tdooner/85febab03eed25967d2a to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'yaml'
require 'base64'
contents = "#cloud-config\n" + {
'bootcmd' => [
'yum remove zsh -y',
'yum install zsh -y'
]
}.to_yaml
puts "=========================="
puts contents
puts "=========================="
puts Base64.encode64(contents).gsub("\n", '')
puts "=========================="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment