Sha256: 0f17c2726d3a121126c20688b49285cbad07c1d775d9936607dcd1814cf93dac

Contents?: true

Size: 682 Bytes

Versions: 29

Compression:

Stored size: 682 Bytes

Contents

# Begin a new Capybara session, by default connecting to localhost on port
# 3000.
def session
  Capybara.app_host ||= "http://localhost:3000"
  @session ||= Capybara::Session.new(:akephalos)
end
alias page session

module Akephalos
  # Simple class for starting an IRB session.
  class Console

    # Start an IRB session. Tries to load irb/completion, and also loads a
    # .irbrc file if it exists.
    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

29 entries across 29 versions & 3 rubygems

Version Path
akephalos2-2.1.3-java lib/akephalos/console.rb
akephalos2-2.1.3 lib/akephalos/console.rb
akephalos2-2.1.2-java lib/akephalos/console.rb
akephalos2-2.1.2 lib/akephalos/console.rb
akephalos2-2.1.1.2-java lib/akephalos/console.rb
akephalos2-2.1.1.2 lib/akephalos/console.rb
akephalos2-stable-2.1.1.1 lib/akephalos/console.rb
akephalos2-2.1.1.1-java lib/akephalos/console.rb
akephalos2-2.1.1.1 lib/akephalos/console.rb
akephalos2-2.1.1-java lib/akephalos/console.rb
akephalos2-2.1.1 lib/akephalos/console.rb
akephalos2-2.1.0-java lib/akephalos/console.rb
akephalos2-2.1.0 lib/akephalos/console.rb
akephalos2-2.0.9-java lib/akephalos/console.rb
akephalos2-2.0.9 lib/akephalos/console.rb
akephalos2-2.0.8.1-java lib/akephalos/console.rb
akephalos2-2.0.8.1 lib/akephalos/console.rb
akephalos2-2.0.8-java lib/akephalos/console.rb
akephalos2-2.0.8 lib/akephalos/console.rb
akephalos2-2.0.7-java lib/akephalos/console.rb