class Travis::CLI::Console
def pry_installed?
def pry_installed? require 'pry' true rescue LoadError $stderr.puts 'You need to install pry to use Travis CLI console. Try' $stderr.puts $stderr.puts '$ (sudo) gem install pry' false end
def run
def run return unless pry_installed? Object.send(:include, Client::Namespace.new(session)) hooks = defined?(Pry::Hooks) ? Pry::Hooks.new : {} binding.pry(:quiet => true, :prompt => Pry::SIMPLE_PROMPT, :output => $stdout, :hooks => hooks) end