Sha256: f715a402c722b759cc3afd5ae6fead7e48d86733957a2375a33688138ebab10b

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

#!/usr/bin/env ruby

if File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../vendor/picnic/lib'))
  $: << picnic
elsif File.exists?(picnic = File.expand_path(File.dirname(File.expand_path(__FILE__))+'/../../picnic/lib'))
  $: << picnic
else
  require 'rubygems'
  
  # make things backwards-compatible for rubygems < 0.9.0
  unless Object.method_defined? :gem
    alias gem require_gem
  end
  
  gem 'picnic'
end

require 'picnic/cli'

cli = Picnic::Cli.new(
  'rubycas-server',
  :app_path => File.expand_path(File.dirname(File.expand_path(__FILE__))),
  :app_module => 'CASServer'
)

cli.handle_cli_input

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
gunark-rubycas-server-0.6.99.336 bin/rubycas-server
relevance-rubycas-server-0.6.99 bin/rubycas-server
wmernagh-rubycas-server-0.6.99.336 bin/rubycas-server