class UserInteractor
Public Class Methods
new(stf)
click to toggle source
# File lib/stf/interactor/user_interactor.rb, line 10 def initialize(stf) @stf = stf end
Public Instance Methods
execute(adb_public_key_location)
click to toggle source
# File lib/stf/interactor/user_interactor.rb, line 14 def execute(adb_public_key_location) public_key = File.open(adb_public_key_location, 'rb', &:read) success = @stf.add_adb_public_key public_key if success logger.info "adb public key from '#{adb_public_key_location}' has been added" elsif logger.error "Can't add public key from '#{adb_public_key_location}'" return false end end