Sha256: af2ab13d4199dd2a66f7a251064c60f56d0ef7f3ba60d354eca232cc510fbb78

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

require 'shellwords'

module SimCtl
  class Command
    module Install
      COMMAND = %w[xcrun simctl install]

      # Installs an app on a device
      #
      # @param device [SimCtl::Device] the device the app should be installed on
      # @param path Absolute path to the app that should be installed
      # @return [void]
      def install_app(device, path)
        Executor.execute(command_for('install', device.udid, Shellwords.shellescape(path)))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simctl-1.5.7 lib/simctl/command/install.rb
simctl-1.5.6 lib/simctl/command/install.rb
simctl-1.5.5 lib/simctl/command/install.rb
simctl-1.5.4 lib/simctl/command/install.rb
simctl-1.5.3 lib/simctl/command/install.rb
simctl-1.5.2 lib/simctl/command/install.rb