Sha256: 8c4a215ea75ef670c09ece12ddc9f6d8a0cefff70d9470410da77131db7a27f6

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

#!/usr/bin/env ruby
module AlfLauncher

  def self.lib
    File.expand_path('../../lib', __FILE__)
  end
  
  def self.load
    begin
      $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 
      require "alf"
    rescue LoadError => ex
      require "rubygems"
      require "alf"
    end
  end
  
  def self.start(argv)
    load
    if ENV["ALF_OPTS"]
      argv = Alf::Tools::parse_commandline_args(ENV["ALF_OPTS"]) + argv
    end
    Alf::Command::Main.run(argv, __FILE__)
  end

end # module AlfLaucher
AlfLauncher.start(ARGV)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-0.9.3 bin/alf