Sha256: 7bd38db2e44c5b0e6e6607419961c4dfbd71da2205920f0c3661e1fae9ffafbf

Contents?: true

Size: 323 Bytes

Versions: 15

Compression:

Stored size: 323 Bytes

Contents

module SimCtl
  class Command
    module Shutdown
      COMMAND = %w[xcrun simctl shutdown]

      # Shutdown a device
      #
      # @param device [SimCtl::Device] the device to shutdown
      # @return [void]
      def shutdown_device(device)
        Executor.execute([COMMAND, device.udid])
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
simctl-1.5.1 lib/simctl/command/shutdown.rb
simctl-1.5.0 lib/simctl/command/shutdown.rb
simctl-1.4.1 lib/simctl/command/shutdown.rb
simctl-1.4.0 lib/simctl/command/shutdown.rb
simctl-1.3.1 lib/simctl/command/shutdown.rb
simctl-1.3.0 lib/simctl/command/shutdown.rb
simctl-1.2.3 lib/simctl/command/shutdown.rb
simctl-1.2.2 lib/simctl/command/shutdown.rb
simctl-1.2.1 lib/simctl/command/shutdown.rb
simctl-1.2.0 lib/simctl/command/shutdown.rb
simctl-1.1.0 lib/simctl/command/shutdown.rb
simctl-1.0.2 lib/simctl/command/shutdown.rb
simctl-1.0.1 lib/simctl/command/shutdown.rb
simctl-1.0.0 lib/simctl/command/shutdown.rb
simctl-0.2.0 lib/simctl/command/shutdown.rb