Sha256: baec456e1503efb6794a903c6e7c74b07c91233412649c27c55e981cbfe1cc80
Contents?: true
Size: 1.1 KB
Versions: 7
Compression:
Stored size: 1.1 KB
Contents
#!/usr/bin/env ruby # -*- bash -*- # # require "fileutils" case ARGV[0] when "help" puts %^ # ====================" www_app help www_app Public www_app upgrade_js # ====================" ^ when 'Public' gem = File.expand_path(File.dirname(__FILE__ ) + '/..') source = gem + '/lib/public' dest = "Public/www_app-#{File.read(gem + '/VERSION').strip}" FileUtils.mkdir_p dest FileUtils.rm_r Dir.glob('Public/www_app-*.*.*'), :secure=>true FileUtils.copy_entry source, dest puts "=== Copied files into: #{dest}" when "upgrade_js" fail " Must automate downloading of LATEST (security reason) underscore, jquery, etc. " 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
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
www_app-2.3.0 | bin/www_app |
www_app-2.1.3 | bin/www_app |
www_app-2.1.1 | bin/www_app |
www_app-2.1.0 | bin/www_app |
www_app-2.0.2 | bin/www_app |
www_app-2.0.1 | bin/www_app |
www_app-2.0.0 | bin/www_app |