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

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

Instance Method Summary collapse

Instance Method Details

#rotateObject



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

def rotate
  @rotate ||= ::Avm::Data::Rotate.new(
    parsed.path,
    space_limit: parsed.space_limit
  )
end

#runObject



16
17
18
19
# File 'lib/avm/tools/runner/files/rotate.rb', line 16

def run
  error_message = rotate.run
  fatal_error(error_message) if error_message
end