Method: Shop::Platform#open_command

Defined in:
lib/shop/platform.rb

#open_commandObject

Public: returns the command used to open a file or URL for the current platform.

Currently only supports MacOS X and Linux with xdg-open.

Returns a String with the bin



29
30
31
32
33
34
35
36
37
# File 'lib/shop/platform.rb', line 29

def open_command
  if darwin?
    'open'
  elsif windows?
    'start'
  else
    'xdg-open'
  end
end