Skip to content

Instantly share code, notes, and snippets.

@gipp
Created September 28, 2013 19:26
Show Gist options
  • Save gipp/6745560 to your computer and use it in GitHub Desktop.
Save gipp/6745560 to your computer and use it in GitHub Desktop.
require 'fileutils'
output = {}
output['junk'] = []
Dir.foreach(source) do |f|
if f != '.' and f != '..' and f != '.gitignore'
output['junk'].push(f)
end
end
# output a JSON file
File.open('manifest.json', 'w') do |f|
f.write(JSON.pretty_generate(output))
end
@oldwestaction
Copy link

source = Dir.pwd + '/' + ARGV[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment