Sha256: bf236f9e674754ab6d6299f4cd05be375105844b7739f6f2e26aa74a14f462dc

Contents?: true

Size: 397 Bytes

Versions: 16

Compression:

Stored size: 397 Bytes

Contents

require 'shellwords'

module SimCtl
  class Command
    module OpenUrl
      # Opens a url
      #
      # @param device [SimCtl::Device] the device that should open the url
      # @param url The url to open on the device
      # @return [void]
      def open_url(device, url)
        Executor.execute(command_for('openurl', device.udid, Shellwords.shellescape(url)))
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
simctl-1.6.10 lib/simctl/command/openurl.rb
simctl-1.6.8 lib/simctl/command/openurl.rb
simctl-1.6.7 lib/simctl/command/openurl.rb
simctl-1.6.6 lib/simctl/command/openurl.rb
simctl-1.6.5 lib/simctl/command/openurl.rb
simctl-1.6.4 lib/simctl/command/openurl.rb
simctl-1.6.3 lib/simctl/command/openurl.rb
simctl-1.6.2 lib/simctl/command/openurl.rb
simctl-1.6.1 lib/simctl/command/openurl.rb
simctl-1.6.0 lib/simctl/command/openurl.rb
simctl-1.5.8 lib/simctl/command/openurl.rb
simctl-1.5.7 lib/simctl/command/openurl.rb
simctl-1.5.6 lib/simctl/command/openurl.rb
simctl-1.5.5 lib/simctl/command/openurl.rb
simctl-1.5.4 lib/simctl/command/openurl.rb
simctl-1.5.3 lib/simctl/command/openurl.rb