Class: Avm::Tools::Runner::Files::Rotate

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Defined in:
lib/avm/tools/runner/files/rotate.rb

Constant Summary collapse

DOC =
<<~DOCOPT
  Rotates a file (Like a backup).

  Usage:
    __PROGRAM__ <path>
    __PROGRAM__ -h | --help

  Options:
    -h --help             Show this screen.
DOCOPT

Instance Method Summary collapse

Instance Method Details

#runObject



22
23
24
# File 'lib/avm/tools/runner/files/rotate.rb', line 22

def run
  ::Avm::Files::Rotate.new(options.fetch('<path>')).run
end