module Aemninja::Errors

Public Class Methods

already_initialized(path) click to toggle source
# File lib/aemninja/errors.rb, line 9
def self.already_initialized(path)
  puts 'It seems like aemninja has already been initialized in this directory. "' + path + '" folder already exists!'
  exit 2
end
does_not_exist(path) click to toggle source
# File lib/aemninja/errors.rb, line 14
def self.does_not_exist(path)
  puts 'ERROR: ' + path + ' does not exist!'
  exit 3
end
not_a_file(path) click to toggle source
# File lib/aemninja/errors.rb, line 4
def self.not_a_file(path)
  puts 'ERROR: ' + path + ' is not a file!'
  exit 1
end