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

Constructor Details

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

Instance Method Details

#callObject



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