Sha256: 4bb10530af8a457dcf51d32bba21c307ca7a5b1d698c202c6305ce7e788304e3

Contents?: true

Size: 649 Bytes

Versions: 4

Compression:

Stored size: 649 Bytes

Contents

#!/usr/bin/env ruby

def caller_file(level=0)
  if caller[level]
    File.expand_path(caller[level].split(":").first)
  else
    nil
  end
end

private :caller_file

$start   = Time.now
$display = true
$cl      = true # this lets us know we're a command line app
$amp_executable = File.expand_path(__FILE__)

ARGV.each { |arg| $USE_RUBY = true if arg == "--pure-ruby" || arg == '-u' }

def follow_link(file)
  file = File.expand_path(file)
  while File.symlink?(file)
    file = File.expand_path(File.readlink(file), File.dirname(file))
  end
  file
end

require File.join(File.dirname(follow_link(__FILE__)), "..", "lib", "amp")

Amp::Dispatch.run

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
amp-0.5.2 bin/amp
amp-0.5.1 bin/amp
amp-pure-0.5.0 bin/amp
amp-0.5.0 bin/amp