Sha256: ef604eb932e49958d48fd89d0954f9649f4a4e4ddf3d14b5112d3df784a0024b

Contents?: true

Size: 503 Bytes

Versions: 12

Compression:

Stored size: 503 Bytes

Contents

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

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

if `which pry` && $?.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

12 entries across 12 versions & 1 rubygems

Version Path
ruby-cute-0.13 bin/cute
ruby-cute-0.12 bin/cute
ruby-cute-0.11 bin/cute
ruby-cute-0.10 bin/cute
ruby-cute-0.9 bin/cute
ruby-cute-0.8 bin/cute
ruby-cute-0.7 bin/cute
ruby-cute-0.6 bin/cute
ruby-cute-0.5 bin/cute
ruby-cute-0.4 bin/cute
ruby-cute-0.3 bin/cute
ruby-cute-0.0.2 bin/cute