Sha256: 2a7e83ff2e22ff8cffa1a41bb428e3e666a7363b310157e47e849c8acd105a34

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

#!/usr/bin/ruby -w
require 'tmpdir'

ROOT_DIR= File.expand_path('../..',__FILE__)
BIN_DIR= File.join(ROOT_DIR,"bin")

pry_path = `which pry`
if pry_path && $?.success? then
  PRY_BIN="pry"
elsif File.exist?("~/.gem/bin/pry")
  PRY_BIN="~/.gem/bin/pry"
else
  # We use the default ruby interactive shell
  PRY_BIN="irb"
end


cute_init_file = File.open("#{Dir.mktmpdir}/cute_init.rb",'w+')
cute_init_file.puts "require 'cute'\n$g5k = Cute::G5K::API.new()"
cute_init_file.close


exec("#{PRY_BIN} -r #{cute_init_file.path}")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-cute-0.24 bin/cute