Sha256: 4a6d8d3fa97700bd151b6ba5139091034514e624d16b0ca1367b61bad4db952a

Contents?: true

Size: 465 Bytes

Versions: 15

Compression:

Stored size: 465 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "browser_app_base"
require "optparse"

opt = OptionParser.new
o = {}
opt.on("-d dir_name", "--dir dir_name", "application directory") { |v| o[:dir] = v }
opt.on("-a app_name", "--app app_name", "application name") { |v| o[:app] = v }
opt.on("-h", "--help", "command help") { puts opt; exit }
begin
  opt.parse!(ARGV)
rescue
  puts opt
  exit
end

if o[:dir] == nil
  puts opt
  exit
end

BrowserAppBase.create o

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
browser_app_base-0.1.7 bin/create_browser_app.rb
browser_app_base-0.1.6 bin/create_browser_app.rb
browser_app_base-0.1.5 bin/create_browser_app.rb
browser_app_base-0.1.4 bin/create_browser_app.rb
browser_app_base-0.1.3 bin/create_browser_app.rb
browser_app_base-0.1.2 bin/create_browser_app.rb
browser_app_base-0.1.1 bin/create_browser_app.rb
browser_app_base-0.1.0 bin/create_browser_app.rb
browser_app_base-0.0.9 bin/create_browser_app.rb
browser_app_base-0.0.8 bin/create_browser_app.rb
browser_app_base-0.0.7 bin/create_browser_app.rb
browser_app_base-0.0.6 bin/create_browser_app.rb
browser_app_base-0.0.5 bin/create_browser_app.rb
browser_app_base-0.0.4 bin/create_browser_app.rb
browser_app_base-0.0.3 bin/create_browser_app.rb