Class: Guard::Jobs::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/jobs/base.rb

Direct Known Subclasses

PryWrapper, Sleep

Instance Method Summary collapse

Constructor Details

#initialize(_options) ⇒ Base

Returns a new instance of Base.



4
5
# File 'lib/guard/jobs/base.rb', line 4

def initialize(_options)
end

Instance Method Details

#backgroundObject



12
13
# File 'lib/guard/jobs/base.rb', line 12

def background
end

#foregroundSymbol

Returns:

  • (Symbol)

    :stopped once job is finished

  • (Symbol)

    :exit to tell Guard to terminate



9
10
# File 'lib/guard/jobs/base.rb', line 9

def foreground
end

#handle_interruptObject

Signal handler calls this, so avoid actually doing anything other than signaling threads



17
18
# File 'lib/guard/jobs/base.rb', line 17

def handle_interrupt
end