Class: Puppet::Pops::Migration::MigrationChecker Private
- Defined in:
- lib/puppet/pops/migration/migration_checker.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This class defines the private API of the MigrationChecker support.
Class Method Summary collapse
-
.singleton ⇒ Object
private
rubocop:disable Naming/MemoizedInstanceVariableName.
Instance Method Summary collapse
-
#available_migrations ⇒ Object
private
Produces a hash of available migrations; a map from a symbolic name in string form to a brief description.
-
#initialize ⇒ MigrationChecker
constructor
private
A new instance of MigrationChecker.
-
#report_ambiguous_float(o) ⇒ Object
private
For 3.8/4.0.
-
#report_ambiguous_integer(o) ⇒ Object
private
For 3.8/4.0.
-
#report_array_last_in_block(o) ⇒ Object
private
For 3.8/4.0.
-
#report_empty_string_true(value, o) ⇒ Object
private
For 3.8/4.0.
-
#report_equality_type_mismatch(left, right, o) ⇒ Object
private
For 3.8/4.0.
-
#report_in_expression(o) ⇒ Object
private
For 3.8/4.0.
-
#report_option_type_mismatch(test_value, option_value, option_expr, matching_expr) ⇒ Object
private
For 3.8/4.0.
-
#report_uc_bareword_type(value, o) ⇒ Object
private
For 3.8/4.0.
Constructor Details
#initialize ⇒ MigrationChecker
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MigrationChecker.
7 8 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 7 def initialize end |
Class Method Details
.singleton ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
rubocop:disable Naming/MemoizedInstanceVariableName
11 12 13 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 11 def self.singleton @null_checker ||= new end |
Instance Method Details
#available_migrations ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Produces a hash of available migrations; a map from a symbolic name in string form to a brief description. This version has no such supported migrations.
18 19 20 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 18 def available_migrations {} end |
#report_ambiguous_float(o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
28 29 30 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 28 def report_ambiguous_float(o) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_ambiguous_integer(o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
23 24 25 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 23 def report_ambiguous_integer(o) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_array_last_in_block(o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
58 59 60 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 58 def report_array_last_in_block(o) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_empty_string_true(value, o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
33 34 35 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 33 def report_empty_string_true(value, o) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_equality_type_mismatch(left, right, o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
43 44 45 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 43 def report_equality_type_mismatch(left, right, o) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_in_expression(o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
53 54 55 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 53 def report_in_expression(o) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_option_type_mismatch(test_value, option_value, option_expr, matching_expr) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
48 49 50 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 48 def report_option_type_mismatch(test_value, option_value, option_expr, matching_expr) raise Puppet::DevError, _("Unsupported migration method called") end |
#report_uc_bareword_type(value, o) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
For 3.8/4.0
38 39 40 |
# File 'lib/puppet/pops/migration/migration_checker.rb', line 38 def (value, o) raise Puppet::DevError, _("Unsupported migration method called") end |