Class: ShopifyCLI::Services::App::Tunnel::StopService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/shopify_cli/services/app/tunnel/stop_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

call

Constructor Details

#initialize(context:) ⇒ StopService

Returns a new instance of StopService.



8
9
10
11
# File 'lib/shopify_cli/services/app/tunnel/stop_service.rb', line 8

def initialize(context:)
  @context = context
  super()
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



6
7
8
# File 'lib/shopify_cli/services/app/tunnel/stop_service.rb', line 6

def context
  @context
end

Instance Method Details

#callObject



13
14
15
# File 'lib/shopify_cli/services/app/tunnel/stop_service.rb', line 13

def call
  ShopifyCLI::Tunnel.stop(context)
end