Sha256: 2b2a296e31a3db07347da2323964c571c5df977737999e504e3a95cf4598b36c

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

require 'simctl/command/boot'
require 'simctl/command/create'
require 'simctl/command/delete'
require 'simctl/command/erase'
require 'simctl/command/install'
require 'simctl/command/uninstall'
require 'simctl/command/kill'
require 'simctl/command/launch'
require 'simctl/command/list'
require 'simctl/command/rename'
require 'simctl/command/reset'
require 'simctl/command/shutdown'
require 'simctl/command/openurl'
require 'simctl/executor'

module SimCtl
  class Command
    attr_accessor :device_set_path

    include SimCtl::Command::Boot
    include SimCtl::Command::Create
    include SimCtl::Command::Delete
    include SimCtl::Command::Erase
    include SimCtl::Command::Install
    include SimCtl::Command::Uninstall
    include SimCtl::Command::Kill
    include SimCtl::Command::Launch
    include SimCtl::Command::List
    include SimCtl::Command::Rename
    include SimCtl::Command::Reset
    include SimCtl::Command::Shutdown
    include SimCtl::Command::OpenUrl

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simctl-1.5.5 lib/simctl/command.rb
simctl-1.5.4 lib/simctl/command.rb