Class: Kitchen::Command::Console
- Defined in:
- lib/kitchen/command/console.rb
Overview
Command to launch a Pry-based Kitchen console..
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/kitchen/command/console.rb', line 30 def call require 'pry' Pry.start(@config, :prompt => [prompt(">"), prompt("*")]) rescue LoadError => e warn %{Make sure you have the pry gem installed. You can install it with:} warn %{`gem install pry` or including 'gem "pry"' in your Gemfile.} exit 1 end |