Class: Cangrejo::Modes::Remote
- Inherits:
-
Object
- Object
- Cangrejo::Modes::Remote
- Defined in:
- lib/cangrejo/modes/remote.rb
Instance Method Summary collapse
-
#initialize(_remote) ⇒ Remote
constructor
A new instance of Remote.
- #release ⇒ Object
- #setup ⇒ Object
Constructor Details
#initialize(_remote) ⇒ Remote
Returns a new instance of Remote.
7 8 9 |
# File 'lib/cangrejo/modes/remote.rb', line 7 def initialize(_remote) @remote = _remote end |
Instance Method Details
#release ⇒ Object
15 16 17 18 |
# File 'lib/cangrejo/modes/remote.rb', line 15 def release @session.put({ status: 'finished' }) unless @session.nil? @session = nil end |
#setup ⇒ Object
11 12 13 |
# File 'lib/cangrejo/modes/remote.rb', line 11 def setup @session = create_session end |