Module: ShopifyCLI::CommandOptions::CommandServeOptions::ClassMethods
- Defined in:
- lib/shopify_cli/command_options/command_serve_options.rb
Instance Method Summary collapse
Instance Method Details
#parse_host_option ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/shopify_cli/command_options/command_serve_options.rb', line 31 def parse_host_option do |parser, flags| parser.on("--host=HOST") do |h| flags[:host] = h.gsub('"', "") end end end |
#parse_no_update_option ⇒ Object
45 46 47 48 49 |
# File 'lib/shopify_cli/command_options/command_serve_options.rb', line 45 def parse_no_update_option do |parser, flags| parser.on("--no-update") { flags[:no_update] = true } end end |
#parse_port_option ⇒ Object
39 40 41 42 43 |
# File 'lib/shopify_cli/command_options/command_serve_options.rb', line 39 def parse_port_option do |parser, flags| parser.on("--port=PORT") { |port| flags[:port] = port } end end |