Class: SimCtl::Command

Inherits:
Object
  • Object
show all
Includes:
Boot, Create, Delete, Erase, IO, Install, Keychain, Kill, Launch, List, OpenUrl, Privacy, Push, Rename, Reset, Shutdown, Spawn, StatusBar, Terminate, Uninstall, Upgrade, Warmup
Defined in:
lib/simctl/command.rb,
lib/simctl/command/io.rb,
lib/simctl/command/boot.rb,
lib/simctl/command/kill.rb,
lib/simctl/command/list.rb,
lib/simctl/command/push.rb,
lib/simctl/command/erase.rb,
lib/simctl/command/reset.rb,
lib/simctl/command/spawn.rb,
lib/simctl/command/create.rb,
lib/simctl/command/delete.rb,
lib/simctl/command/launch.rb,
lib/simctl/command/rename.rb,
lib/simctl/command/warmup.rb,
lib/simctl/command/install.rb,
lib/simctl/command/openurl.rb,
lib/simctl/command/privacy.rb,
lib/simctl/command/upgrade.rb,
lib/simctl/command/keychain.rb,
lib/simctl/command/shutdown.rb,
lib/simctl/command/terminate.rb,
lib/simctl/command/uninstall.rb,
lib/simctl/command/status_bar.rb

Defined Under Namespace

Modules: Boot, Create, Delete, Erase, IO, Install, Keychain, Kill, Launch, List, OpenUrl, Privacy, Push, Rename, Reset, Shutdown, Spawn, StatusBar, Terminate, Uninstall, Upgrade, Warmup

Constant Summary

Constants included from Launch

Launch::SUPPORTED_SCALE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Warmup

#warmup

Methods included from Upgrade

#upgrade

Methods included from Uninstall

#uninstall_app

Methods included from Terminate

#terminate_app

Methods included from StatusBar

#status_bar_clear, #status_bar_override

Methods included from Spawn

#spawn

Methods included from Shutdown

#shutdown_device

Methods included from Reset

#reset_device

Methods included from Rename

#rename_device

Methods included from Push

#push

Methods included from Privacy

#privacy

Methods included from OpenUrl

#open_url

Methods included from List

#device, #devicetype, #list_devices, #list_devicetypes, #list_runtimes, #runtime

Methods included from Launch

#launch_app, #launch_device

Methods included from Kill

#kill_device

Methods included from Keychain

#keychain_reset

Methods included from Install

#install_app

Methods included from IO

#screenshot

Methods included from Erase

#erase_device

Methods included from Delete

#delete_all_devices, #delete_device

Methods included from Create

#create_device

Methods included from Boot

#boot_device

Instance Attribute Details

#device_set_pathObject

Returns the value of attribute device_set_path.



28
29
30
# File 'lib/simctl/command.rb', line 28

def device_set_path
  @device_set_path
end

Instance Method Details

#command_for(*arguments) ⇒ Object



57
58
59
60
61
62
# File 'lib/simctl/command.rb', line 57

def command_for(*arguments)
  command = %w[xcrun simctl]
  command += ['--set', Shellwords.shellescape(device_set_path)] unless device_set_path.nil?
  command += arguments
  command
end