Blame view
script/boxen-my-config
520 Bytes
fdb27960f Update template w... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/usr/bin/env ruby # Show the path to your manifest in Boxen, creating if necessary. user = ENV["GH_LOGIN"] unless user abort "GH_LOGIN is not defined. Please re-run Boxen." end editor = ENV["VISUAL"] || ENV["EDITOR"] home = ENV["BOXEN_HOME"] + "/repo" user = user.downcase path = "#{home}/modules/people/manifests/#{user}.pp" unless File.exist? path File.open path, "wb" do |f| f.puts "class people::#{user} {" f.puts "}" end end |
d4af4bf81 Update our boxen ... |
21 |
exec(editor, path) if editor && system("test -t 1") |
fdb27960f Update template w... |
22 23 |
puts path |