Class: Kitchen::Command::Console

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/command/console.rb

Overview

Command to launch a Pry-based Kitchen console..

Author:

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Logging

#banner, #debug, #error, #fatal, #info, #warn

Constructor Details

This class inherits a constructor from Kitchen::Command::Base

Instance Method Details

#callObject

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