Sha256: dbcd8a4ec0ef85ad69c1029d575843f2ca8a0144aa50095a27491db186a3ded0

Contents?: true

Size: 741 Bytes

Versions: 24

Compression:

Stored size: 741 Bytes

Contents

#!/usr/bin/env ruby

begin
  require 'rib/runner'
  # create the shell before app to prvent your bundler (if any) kicks in
  Rib.shell
  # we need to require anything before loading the app,
  # and both `rib auto` (true) and `rib-auto` (nil) should work
  require 'rib/core' if Rib.config.delete(:mimic_irb) != false
  require 'rib/app/rest-core'
  # load the app
  Rib::RestCore.load
  Rib::Runner.run(ARGV)
rescue LoadError => e
  abort("Error: #{e}\n"                                        \
        "Please install rib to use interactive rest-core:\n\n" \
        "    gem install rib\n\n"                              \
        "Or add rib or rest-core to Gemfile if that's the case")
end

__END__
Run as interactive rest-core client

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
rest-core-0.4.0 bin/rib-rest-core
rest-core-0.4.0.pre.2 bin/rib-rest-core
rest-core-0.4.0.pre.1 bin/rib-rest-core
rest-core-0.4.0.pre.0 bin/rib-rest-core