Sha256: 0cd07a76dba2522c35ef2f010d7710da915376dd2ed76bd9c29b623c1788ff25

Contents?: true

Size: 218 Bytes

Versions: 3

Compression:

Stored size: 218 Bytes

Contents

module CLIUtils
  # Pref Action to open a URL in the default
  # browser.
  class OpenUrlAction < PrefAction
    # Runs the action.
    # @return [void]
    def run
      `open #{ @parameters[:url] }`
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cliutils-2.0.2 lib/cliutils/prefs/pref_actions/open_url_action.rb
cliutils-2.0.1 lib/cliutils/prefs/pref_actions/open_url_action.rb
cliutils-2.0.0 lib/cliutils/prefs/pref_actions/open_url_action.rb