Sha256: d0ac7694c725ba0fd5a8898579f4cfd077f4d22212bafc0fc2a28f545707790c

Contents?: true

Size: 517 Bytes

Versions: 9

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

require 'puppetfile-resolver/models/module_specification'

module PuppetfileResolver
  module Models
    class MissingModuleSpecification < ModuleSpecification
      def initialize(options = {})
        super
        @origin = :missing
      end

      def to_s
        "Missing #{name}"
      end

      def metadata(*_)
        nil
      end

      def dependencies(*_)
        # Modules that are missing can not depend on anything, even Puppet
        []
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
puppetfile-resolver-0.6.3 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.6.2 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.6.1 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.6.0 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.5.0 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.4.0 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.3.0 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.2.0 lib/puppetfile-resolver/models/missing_module_specification.rb
puppetfile-resolver-0.1.0 lib/puppetfile-resolver/models/missing_module_specification.rb