Sha256: 22c8d77a4b62fe71baeb4fda346a3d4f26ffc0f3d43b0e8fef542e729e7d488a

Contents?: true

Size: 256 Bytes

Versions: 20

Compression:

Stored size: 256 Bytes

Contents

require 'di'

module Stf
  class RemoveAllUserDevicesInteractor
    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
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
smartdust-client-1.2.0 lib/stf/interactor/remove_all_user_devices_interactor.rb
smartdust-client-1.1.0 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.pre.rc.12 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc10 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc9 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc8 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc7 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc6 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc5 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc4 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc3 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.3.0.rc2 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.6 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.5 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.4 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.3 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.2 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.1 lib/stf/interactor/remove_all_user_devices_interactor.rb
stf-client-0.2.0 lib/stf/interactor/remove_all_user_devices_interactor.rb