Sha256: b50c5b1b411f135e53ccd95437e041b1bc9e35c282c092dd205e08426d6664b0

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 KB

Contents

# Copyright:: Copyright (c) 2018 eGlobalTech, Inc., all rights reserved
#
# Licensed under the BSD-3 license (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License in the root of the project or at
#
#     http://egt-labs.com/mu/LICENSE.html
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module MU
  class Config
    # Basket of Kittens config schema and parser logic. See modules/mu/clouds/*/notification.rb
    class Notification

      # XXX
      # This one is weird in that it kind of has a first-class implementation
      # but really should be a subclass of something else, except maybe not
      # because in an ideal world it'd be a subclass of MANY something elses?
      def self.schema
        {
          "type" => "object",
          "additionalProperties" => false,
          "description" => "A stub for inline resource that generate SNS notifications in AWS. This should really be expanded.",
          "properties" => {}
        }
      end

      # Generic pre-processing of {MU::Config::BasketofKittens::notifications}, bare and unvalidated.
      # @param notification [Hash]: The resource to process and validate
      # @param configurator [MU::Config]: The overall deployment configurator of which this resource is a member
      # @return [Boolean]: True if validation succeeded, False otherwise
      def self.validate(notification, configurator)
        ok = true
        ok
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloud-mu-1.9.0.pre.beta modules/mu/config/notification.rb