Class: ShopifyCLI::Services::App::Serve::ServeService

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

Direct Known Subclasses

NodeService, PHPService, RailsService

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

call

Constructor Details

#initialize(host:, port:, no_update:, context:) ⇒ ServeService

Returns a new instance of ServeService.



8
9
10
11
12
13
14
# File 'lib/shopify_cli/services/app/serve/serve_service.rb', line 8

def initialize(host:, port:, no_update:, context:)
  @host = host
  @port = port
  @no_update = no_update
  @context = context
  super()
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



6
7
8
# File 'lib/shopify_cli/services/app/serve/serve_service.rb', line 6

def context
  @context
end

#hostObject

Returns the value of attribute host.



6
7
8
# File 'lib/shopify_cli/services/app/serve/serve_service.rb', line 6

def host
  @host
end

#no_updateObject

Returns the value of attribute no_update.



6
7
8
# File 'lib/shopify_cli/services/app/serve/serve_service.rb', line 6

def no_update
  @no_update
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/shopify_cli/services/app/serve/serve_service.rb', line 6

def port
  @port
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/shopify_cli/services/app/serve/serve_service.rb', line 16

def call
  raise NotImplementedError
end