Class: Obfusc::DecryptCommand

Inherits:
EncryptorCommandBase show all
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

Methods inherited from EncryptorCommandBase

call, #copy, #initialize, #move

Constructor Details

This class inherits a constructor from Obfusc::EncryptorCommandBase

Instance Method Details

#show_usageObject

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 = <<-TEXT.gsub('      ', '')
  Usage:
  $ obfusc decrypt <* #{COMMANDS.join('|')}> <* from> <to>
    <* > Required arguments

  Action:
    move: Files will be moved to the target.
    copy: Keep existing files and generate a copy.

  Files:
    from: Relative or absolute directory/file be obfuscated. You can also use wildcards like "*" or "**".
    to: Relative or absolute directory where obfuscated files will be stored. (Default to current directory)
  TEXT
  puts usage
end