olds/easy-debian-init.rb
# Method to create automatically backup of the files before overwrite them.
Method to create automatically backup of the files before overwrite them.
Method to create automatically backup of the files before overwrite them .
def check_file_exits(file)
      if File.exists?(file)
        check_mv = FileUtils.move(file,"#{file}.bkp")
        check_status(check_mv,"Creating a backup of file: #{Tty.white} #{file} #{Tty.reset}")
      end
    end
def check_file_exits ( file ) if File . exists? ( file ) check_mv = FileUtils . move ( file , "#{file}.bkp" ) check_status ( check_mv , "Creating a backup of file: #{Tty.white} #{file} #{Tty.reset}" ) end end
Method to create automatically backup of the files before overwrite them.
Method to create automatically backup of the files before overwrite them .
file