Class: Bookbinder::VersionCheckerMessages

Inherits:
Object
  • Object
show all
Defined in:
lib/bookbinder/configuration_validator.rb

Instance Method Summary collapse

Constructor Details

#initialize(user_schema_version, bookbinder_schema_version) ⇒ VersionCheckerMessages

Returns a new instance of VersionCheckerMessages.



64
65
66
67
# File 'lib/bookbinder/configuration_validator.rb', line 64

def initialize(user_schema_version, bookbinder_schema_version)
  @user_schema_version = user_schema_version
  @bookbinder_schema_version = bookbinder_schema_version
end

Instance Method Details

#incompatible_schema_messageObject



74
75
76
77
78
79
# File 'lib/bookbinder/configuration_validator.rb', line 74

def incompatible_schema_message
  "[ERROR] Your config.yml format, schema version #{user_schema_version}, " +
    "is older than this version of Bookbinder can support. Please update " +
    "your config.yml keys and format to version #{bookbinder_schema_version} " +
    "and try again."
end

#schema_now_required_messageObject



69
70
71
72
# File 'lib/bookbinder/configuration_validator.rb', line 69

def schema_now_required_message
  "[ERROR] Bookbinder now requires a certain schema. Please see README " +
    "and provide a schema version."
end

#unrecognized_schema_version_messageObject



81
82
83
84
85
# File 'lib/bookbinder/configuration_validator.rb', line 81

def unrecognized_schema_version_message
  "[ERROR] The config schema version #{user_schema_version} is " +
    "unrecognized by this version of Bookbinder. The latest schema version " +
    "is #{bookbinder_schema_version}."
end