Class: Guard::Jobs::PryWrapper

Inherits:
Base
  • Object
show all
Defined in:
lib/marv/project/guard/pry.rb

Instance Method Summary collapse

Instance Method Details

#_setup(options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/marv/project/guard/pry.rb', line 7

def _setup(options)
  Pry.config.should_load_rc = false
  Pry.config.should_load_local_rc = false
  history_file_path = options[:history_file] || HISTORY_FILE

  if legacy_pry?
    Pry.config.history.file = File.expand_path(history_file_path)
  else
    Pry.config.history_file = File.expand_path(history_file_path)
  end

  _add_hooks(options)

  ::Guard::Commands::All.import
  ::Guard::Commands::Change.import
  ::Guard::Commands::Notification.import
  ::Guard::Commands::Pause.import
  ::Guard::Commands::Reload.import
  ::Guard::Commands::Show.import
  ::Guard::Commands::Scope.import

  _setup_commands
  _configure_prompt
end