Class: Krb::Setup::AskShopifyAccessKey
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- Krb::Setup::AskShopifyAccessKey
- Defined in:
- lib/krb/setup/ask_shopify_access_key.rb
Overview
Sets up configuration
Instance Method Summary collapse
-
#initialize(setup) ⇒ AskShopifyAccessKey
constructor
A new instance of AskShopifyAccessKey.
- #process ⇒ Object
Methods inherited from ApplicationService
process, #prompt, #setup_file_name, #setup_file_path, #verify_admin, #verify_production, #verify_setup
Constructor Details
#initialize(setup) ⇒ AskShopifyAccessKey
Returns a new instance of AskShopifyAccessKey.
9 10 11 |
# File 'lib/krb/setup/ask_shopify_access_key.rb', line 9 def initialize(setup) @shop_name = setup.dig('shop_name') end |
Instance Method Details
#process ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/krb/setup/ask_shopify_access_key.rb', line 13 def process if graphql_endpoint? input else abort("\nInvalid credentials. Please try again.\n") return '' end end |