Class: TheFox::Wallet::ClearCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/wallet/command_clear.rb

Overview

Clear temp and cache files.

Constant Summary collapse

NAME =
'clear'

Instance Method Summary collapse

Methods inherited from Command

create_by_name, #initialize, is_matching_class

Constructor Details

This class inherits a constructor from TheFox::Wallet::Command

Instance Method Details

#runObject



11
12
13
14
15
# File 'lib/wallet/command_clear.rb', line 11

def run
  wallet = Wallet.new(@options[:wallet_path])
  wallet.logger = @options[:logger]
  wallet.clear
end