Sha256: 9160d55025c3ede258dfc5ec8c0f65ed1952c5e40f5d3c2c2b8df0373c0c7183
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
require 'di' require 'stf/client' require 'stf/log/log' module Stf class AddAdbPublicKeyInteractor include Log def execute(adb_public_key_location) public_key = File.open(adb_public_key_location, 'rb', &:read) success = DI[: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 end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
smartdust-client-1.2.0 | lib/stf/interactor/add_adb_public_key.rb |
smartdust-client-1.1.0 | lib/stf/interactor/add_adb_public_key.rb |
stf-client-0.3.0 | lib/stf/interactor/add_adb_public_key.rb |