Class: Metaverse::Errors

Inherits:
Object
  • Object
show all
Defined in:
lib/metaverse/errors.rb

Class Method Summary collapse

Class Method Details

.config_not_found!Object



5
6
7
# File 'lib/metaverse/errors.rb', line 5

def self.config_not_found!
  abort ".meta.yml file was not found in the current working directory. Exiting ...".red
end

.ref_not_found(ref) ⇒ Object



9
10
11
# File 'lib/metaverse/errors.rb', line 9

def self.ref_not_found ref
  return Exception.new "Reference '#{ref}' does not exist.".red
end

.remote_exists(remote) ⇒ Object



17
18
19
# File 'lib/metaverse/errors.rb', line 17

def self.remote_exists remote
  puts "Remote '#{remote}' exists already. Skipping ...".red
end

.remote_not_found(remote) ⇒ Object



13
14
15
# File 'lib/metaverse/errors.rb', line 13

def self.remote_not_found remote
  puts "Remote '#{remote}' does not exist. Skipping ...".red
end