Sha256: 3637769bcef02b7a1ccd2de247853d96cbfdad7ea135a68321ba014a0e58b4b0
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' @base_path = Dir.pwd @files = ['server.js' ] @folders = ['js' ] def obscure Dir.chdir("#{@base_path}") system('rm -R production') system('mkdir production') system('cp -R node_modules production/') system('cp -R logs production/') system('cp -R audios production/') Dir.chdir("production") @files.each do |file| puts file system("javascript-obfuscator ../#{file} --output #{file}") end @folders.each do |folder| puts folder system("javascript-obfuscator ../#{folder} --output #{folder}") end end obscure
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forcast-0.0.110 | lib/lib/production/production.rb |