Class: Gojira::Errors

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

Class Method Summary collapse

Class Method Details

.dc_type_invalid(dc_list) ⇒ Object



20
21
22
# File 'lib/gojira/errors.rb', line 20

def dc_type_invalid(dc_list)
  "The passed dc_name is not a valid DC name in this environment. Please pass a DC name from this list: #{dc_list}"
end

.lint_failed(lint_output) ⇒ Object



12
13
14
# File 'lib/gojira/errors.rb', line 12

def lint_failed(lint_output)
  "Lint process failed, the env directory is not correctly formatted.\nCorrect these errors:\n#{lint_output}"
end

.merge_failed(merge_output) ⇒ Object



16
17
18
# File 'lib/gojira/errors.rb', line 16

def merge_failed(merge_output)
  "Merge process failed, the env directory is not correctly formatted. Run lint stage again!\nErrors:\n#{merge_output}"
end

.required_options(required_options_list) ⇒ Object



8
9
10
# File 'lib/gojira/errors.rb', line 8

def required_options(required_options_list)
  "Pass all the required options as arguments #{required_options_list}"
end