Class: UIAuto::SimulatorCLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/uiauto/cli.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



39
40
41
# File 'lib/uiauto/cli.rb', line 39

def close
  Simulator.close
end

#load(data_path) ⇒ Object



18
19
20
21
# File 'lib/uiauto/cli.rb', line 18

def load(data_path)
  simulator = Simulator.new(options[:sdk])
  simulator.load(data_path)
end

#openObject



34
35
36
# File 'lib/uiauto/cli.rb', line 34

def open
  Simulator.open(options[:simulator])
end

#resetObject



11
12
13
14
# File 'lib/uiauto/cli.rb', line 11

def reset
  simulator = Simulator.new(options[:sdk])
  simulator.reset
end

#save(data_path) ⇒ Object



25
26
27
28
# File 'lib/uiauto/cli.rb', line 25

def save(data_path)
  simulator = Simulator.new(options[:sdk])
  simulator.save(data_path)
end