Class: Nib::Console

Inherits:
Object
  • Object
show all
Includes:
Command, History
Defined in:
lib/nib/console.rb

Constant Summary collapse

SCRIPT =
"  has_pry=false\n  has_boot=false\n  if hash pry 2>/dev/null ; then\n    has_pry=true\n  fi\n  if [ -f config/boot.rb ]; then\n    has_boot=true\n  fi\n  if [ -f bin/console ]; then\n    bin/console\n  elif [ -f bin/rails ]; then\n    rails console\n  elif [ \\\\$has_boot = true ] && [ \\\\$has_pry = true ]; then\n    pry -r ./config/boot\n  elif [ \\\\$has_boot = true ]; then\n    irb -r ./config/boot\n  elif [ \\\\$has_pry = true ]; then\n    bundle config console pry\n    bundle console\n  else\n    bundle console\n  fi\n".freeze

Constants included from History

History::PATH

Method Summary

Methods included from Command

#alternate_compose_file, #entrypoint, #execute, included, #initialize, #script

Methods included from History

#alternate_compose_file, #irbrc, prepended, #pryrc, #wrap