Class: Kitchen::Command::Console
- Defined in:
- lib/kitchen/command/console.rb
Overview
Command to launch a Pry-based Kitchen console..
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods inherited from Base
Methods included from Logging
#banner, #debug, #error, #fatal, #info, #warn
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
Invoke the command.
27 28 29 30 31 32 33 34 |
# File 'lib/kitchen/command/console.rb', line 27 def call require "pry" Pry.start(@config, prompt: [prompt(">"), prompt("*")]) rescue LoadError 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 |