Sha256: d977ddcea9fd2fa19c7d27bc31f05f45232fc56ac9f1e98fea58fd76b2e1b20c

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

module Aemninja
  module Errors

    def self.not_a_file(path)
      puts 'ERROR: ' + path + ' is not a file!'
      exit 1
    end

    def self.already_initialized(path)
      puts 'It seems like aemninja has already been initialized in this directory. "' + path + '" folder already exists!'
      exit 2
    end

    def self.does_not_exist(path)
      puts 'ERROR: ' + path + ' does not exist!'
      exit 3
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aemninja-0.0.6 lib/aemninja/errors.rb
aemninja-0.0.5 lib/aemninja/errors.rb
aemninja-0.0.4 lib/aemninja/errors.rb
aemninja-0.0.3 lib/aemninja/errors.rb
aemninja-0.0.2 lib/aemninja/errors.rb