class SimCtl::Command

Attributes

device_set_path[RW]

Public Instance Methods

command_for(*arguments) click to toggle source
# File lib/simctl/command.rb, line 55
def command_for(*arguments)
  command = %w[xcrun simctl]
  command += ['--set', Shellwords.shellescape(device_set_path)] unless device_set_path.nil?
  command += arguments
  command
end
device_set_path=(device_set_path) click to toggle source
# File lib/simctl/command.rb, line 51
def device_set_path=(device_set_path)
  @device_set_path = File.expand_path(device_set_path)
end