Sha256: 36279f6482cce3d6b5fcf44f2bc1a9dc6fa2317f2e2f19da3b800fdbf39356cb

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

def session
  Capybara.app_host = "http://localhost:8070"
  @session ||= Capybara::Session.new(:Akephalos)
end
alias page session

module Akephalos
  class Console

    def self.start
      require 'irb'

      begin
        require 'irb/completion'
      rescue Exception
        # No readline available, proceed anyway.
      end

      if ::File.exists? ".irbrc"
        ENV['IRBRC'] = ".irbrc"
      end

      IRB.start
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
akephalos-0.0.5 lib/akephalos/console.rb
akephalos-0.0.4 lib/akephalos/console.rb