Class: Clandestine::RemoveSafe

Inherits:
Object
  • Object
show all
Defined in:
lib/clandestine/commands/remove_safe.rb

Instance Method Summary collapse

Constructor Details

#initialize(safe_password) ⇒ RemoveSafe

Returns a new instance of RemoveSafe.



8
9
10
# File 'lib/clandestine/commands/remove_safe.rb', line 8

def initialize(safe_password)
  @safe_password = safe_password
end

Instance Method Details

#removeObject



12
13
14
15
16
# File 'lib/clandestine/commands/remove_safe.rb', line 12

def remove
  Safe.new(safe_password).open do |safe|
    safe.remove
  end
end