Sha256: b81c2916a51a438ec3ac1021fd3cd3848e20cae457dadc70a10d66fa499df92d
Contents?: true
Size: 771 Bytes
Versions: 6
Compression:
Stored size: 771 Bytes
Contents
#!/usr/bin/env ruby # -*- bash -*- # # case ARGV[0] when "help" puts %^ # ====================" www_app help" www_app install_js" # ====================" ^ when "install_js" fail " Must automate downloading of LATEST (security reason) underscore, jquery, etc. " require "fileutils" args = ARGV.dup applet_file = File.join File.dirname(File.dirname(__FILE__)), "lib/www_app.js" target_dir = if ARGV[1] ARGV[1] else Dir.pwd end new_file = File.join target_dir, "www_app.js" FileUtils.cp applet_file, new_file puts "#=== From: #{applet_file}" puts "#=== Wrote: #{new_file}" else abort "Unknown operation: #{ARGV.first.inspect}" end # === case
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
www_app-1.3.0 | bin/www_app |
www_app-1.2.1 | bin/www_app |
www_app-1.2.0 | bin/www_app |
www_app-1.1.0 | bin/www_app |
www_app-1.0.1 | bin/www_app |
www_app-1.0.0 | bin/www_app |