Sha256: 9c956bcca227a2bbde5d582a8074c37de52c22073b855b0bbcc509cdbc247884

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

#!/usr/bin/env ruby
 
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
 
help = <<HELP
Videojuicer Player 3.0 SDK 
 
Basic Command Line Usage:
  playersdk
  playersdk <path to configuration file>
 
  Configuration is read from '<workspace directory>/_config.yml' but can be overriden
  using the following options:
 
HELP
 
require 'optparse'
require 'playersdk'
 
exec = { }
options = { }

opts = OptionParser.new do |opts|
  opts.banner = help

  opts.on("--config [PATH]", "Location of the YAML task list to use") do |location|
    options['config_path'] = location unless location.nil?
  end
  
  opts.on("--verbose", "Use verbose output mode") do
    options['verbose'] = true
  end
 
  opts.on("--version", "Display current version") do
    puts "Videojuicer Player SDK " + PlayerSDK.version
    exit 0
  end
end
 
# Read command line options into `options` hash
opts.parse!
 
# Get config path from the command line
case ARGV.size
  when 0
  when 1
    options['config_path'] = ARGV[0]
  else
    puts "Invalid options. Run `playersdk --help` for assistance."
    exit(1)
end

config = PlayerSDK.configuration(options)

# Creates a new PlayerSDK compiler instance
compiler = PlayerSDK::Compiler.new(config)

compiler.process()

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
videojuicer-player-sdk-0.4.3 bin/playersdk
vj-player-sdk-0.4.5 bin/playersdk