Class: Obfusc::DecryptCommand
- Inherits:
-
EncryptorCommandBase
- Object
- EncryptorCommandBase
- Obfusc::DecryptCommand
- Defined in:
- lib/obfusc/commands/decrypt_command.rb
Overview
Perform tasks related decrypt command
Constant Summary
Constants inherited from EncryptorCommandBase
EncryptorCommandBase::COMMANDS, EncryptorCommandBase::CURRENT_DIR
Instance Method Summary collapse
-
#show_usage ⇒ Object
rubocop:disable MethodLength.
Methods inherited from EncryptorCommandBase
call, #copy, #initialize, #move
Constructor Details
This class inherits a constructor from Obfusc::EncryptorCommandBase
Instance Method Details
#show_usage ⇒ Object
rubocop:disable MethodLength
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/obfusc/commands/decrypt_command.rb', line 9 def show_usage usage = " Usage:\n $ obfusc decrypt <* \#{COMMANDS.join('|')}> <* from> <to>\n <* > Required arguments\n\n Action:\n move: Files will be moved to the target.\n copy: Keep existing files and generate a copy.\n\n Files:\n from: Relative or absolute directory/file be obfuscated. You can also use wildcards like \"*\" or \"**\".\n to: Relative or absolute directory where obfuscated files will be stored. (Default to current directory)\n TEXT\n puts usage\nend\n".gsub(' ', '') |