Class: Stf::RemoveAllUserDevicesInteractor
- Inherits:
-
Object
- Object
- Stf::RemoveAllUserDevicesInteractor
- Defined in:
- lib/stf/interactor/remove_all_user_devices_interactor.rb
Instance Method Summary collapse
Instance Method Details
#execute(opts = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/stf/interactor/remove_all_user_devices_interactor.rb', line 5 def execute(opts = {}) DI[:demonizer].kill unless opts[:nokill] devices = DI[:stf].get_user_devices devices.each {|d| DI[:stf].remove_device d.serial} end |