class Object

Public Instance Methods

cp_cmd() click to toggle source
# File lib/eye-rotate/rotator.rb, line 14
def cp_cmd
  if !`which /bin/cp`.empty?
    "/bin/cp"
  elsif !`which cp`.empty?
    "cp"
  end
end
gzip_cmd() click to toggle source

very simple log rotator

# File lib/eye-rotate/rotator.rb, line 6
def gzip_cmd
  if !`which /bin/gzip`.empty?
    "/bin/gzip"
  elsif !`which gzip`.empty?
    "gzip"
  end
end