Sha256: 455bc49bb618f7d1561741dfb70e1c60c0e0d374e3f1707f52db9de7311e7cd8
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
#!/usr/bin/env ruby require "fileutils" require "facter" require "tmpdir" # tmpdirディレクトリにコピー dir = File.dirname(File.expand_path(__FILE__)) + "/../" Dir.mktmpdir { |tmpdir| puts tmpdir Dir.glob("#{dir}/lib/*") do |f| puts "#{f} => #{tmpdir}" FileUtils.cp_r f, "#{tmpdir}" end FileUtils.cd "#{tmpdir}" kernel = Facter.value(:kernel) if kernel == "windows" system "rubyw ./start.rb" elsif kernel == "Linux" system "ruby ./start.rb" else system "ruby ./start.rb" end }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browser_app_base-0.1.0 | bin/start_sample.rb |