Class: SafeDb::Wipe
- Inherits:
-
Controller
- Object
- Controller
- SafeDb::Wipe
- Defined in:
- lib/controller/misc/wipe.rb
Overview
The wipe use case clears out any sensitive information from the clipboard. Typically it will be called after the copy use case has placed line values into both the primary and secondary clipboards (Ctrl-v and middle-click).
Instance Method Summary collapse
Methods inherited from Controller
#check_post_conditions, #check_pre_conditions, #flow, #initialize, #open_remote_backend_location, #post_validation, #pre_validation, #read_verse, #set_verse, #update_verse
Constructor Details
This class inherits a constructor from SafeDb::Controller
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/controller/misc/wipe.rb', line 10 def execute() system "printf \"safe wiped the clipboard on #{TimeStamp.readable()}.\" | xclip" system "printf \"safe wiped the clipboard on #{TimeStamp.readable()}.\" | xclip -selection clipbaord" puts "" puts "safe has wiped the clipboards." puts "" end |