Class: ShopifyCLI::Services::App::OpenService
- Inherits:
-
BaseService
- Object
- BaseService
- ShopifyCLI::Services::App::OpenService
- Defined in:
- lib/shopify_cli/services/app/open_service.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(project:, context:) ⇒ OpenService
constructor
A new instance of OpenService.
Methods inherited from BaseService
Constructor Details
#initialize(project:, context:) ⇒ OpenService
Returns a new instance of OpenService.
7 8 9 10 11 |
# File 'lib/shopify_cli/services/app/open_service.rb', line 7 def initialize(project:, context:) @project = project @context = context super() end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/shopify_cli/services/app/open_service.rb', line 5 def context @context end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
5 6 7 |
# File 'lib/shopify_cli/services/app/open_service.rb', line 5 def project @project end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/shopify_cli/services/app/open_service.rb', line 13 def call context.open_url!("#{project.env.host}/login?shop=#{project.env.shop}") end |