vendored/puppet/lib/puppet/pops/issues.rb in bolt-0.21.7 vs vendored/puppet/lib/puppet/pops/issues.rb in bolt-0.21.8

- old
+ new

@@ -284,11 +284,11 @@ ILLEGAL_ATTRIBUTE_APPEND = hard_issue :ILLEGAL_ATTRIBUTE_APPEND, :name, :parent do _("Illegal +> operation on attribute %{attr}. This operator can not be used in %{expression}") % { attr: name, expression: label.a_an(parent) } end ILLEGAL_NAME = hard_issue :ILLEGAL_NAME, :name do - _("Illegal name. The given name '%{name}' does not conform to the naming rule /^((::)?[a-z_]\w*)(::[a-z]\\w*)*$/") % { name: name } + _("Illegal name. The given name '%{name}' does not conform to the naming rule /^((::)?[a-z_]\\w*)(::[a-z]\\w*)*$/") % { name: name } end ILLEGAL_SINGLE_TYPE_MAPPING = hard_issue :ILLEGAL_TYPE_MAPPING, :expression do _("Illegal type mapping. Expected a Type on the left side, got %{expression}") % { expression: label.a_an_uc(semantic) } end @@ -884,11 +884,19 @@ CATALOG_OPERATION_NOT_SUPPORTED_WHEN_SCRIPTING = issue :CATALOG_OPERATION_NOT_SUPPORTED_WHEN_SCRIPTING, :operation do _("The catalog operation '%{operation}' is only available when compiling a catalog") % { operation: operation } end + EXPRESSION_NOT_SUPPORTED_WHEN_SCRIPTING = issue :EXPRESSION_NOT_SUPPORTED_WHEN_SCRIPTING, :klass do + _("%{expr} is only available when compiling a catalog") % { expr: label.a_an_uc(klass) } + end + TASK_OPERATION_NOT_SUPPORTED_WHEN_COMPILING = issue :TASK_OPERATION_NOT_SUPPORTED_WHEN_COMPILING, :operation do _("The task operation '%{operation}' is not available when compiling a catalog") % { operation: operation } + end + + EXPRESSION_NOT_SUPPORTED_WHEN_COMPILING = issue :EXPRESSION_NOT_SUPPORTED_WHEN_COMPILING, :klass do + _("%{expr} is not available when compiling a catalog") % { expr: label.a_an_uc(klass) } end TASK_MISSING_BOLT = issue :TASK_MISSING_BOLT, :action do _("The 'bolt' library is required to %{action}") % { action: action } end