Sha256: cb1241aea370f84ac9a104e8969700bed32d0ebb054dc7f241687c30bf59d5b1

Contents?: true

Size: 249 Bytes

Versions: 7

Compression:

Stored size: 249 Bytes

Contents

#! /usr/bin/ruby1.8

require 'facets/filetest'

name = ARGV[0]

if name
  Dir.chdir '..' until FileTest.executable?(name) or FileTest.root?(Dir.pwd)
  if FileTest.executable?( name )
    system name
  end
else
  puts "Script #{name} not found."
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ratch-0.1 lib/ratch/cli/ludo.rb
ratch-0.2.1 bin/ludo
ratch-0.2.2 bin/ludo
ratch-0.2.3 bin/ludo
ratch-0.3.0 bin/ludo
ratch-0.4.0 bin/ludo
ratch-0.4.1 bin/ludo