Class: Cangrejo::Modes::Local

Inherits:
Object
  • Object
show all
Defined in:
lib/cangrejo/modes/local.rb

Direct Known Subclasses

Git

Instance Method Summary collapse

Constructor Details

#initialize(_path) ⇒ Local

Returns a new instance of Local.



9
10
11
# File 'lib/cangrejo/modes/local.rb', line 9

def initialize(_path)
  @path = _path
end

Instance Method Details

#releaseObject



18
19
20
# File 'lib/cangrejo/modes/local.rb', line 18

def release
  @launcher.kill unless @launcher.nil?
end

#setupObject



13
14
15
16
# File 'lib/cangrejo/modes/local.rb', line 13

def setup
  init_launcher
  init_rest_client
end