Sha256: 154e7cb5ff22ee0347594fb2bd5a7b9ac263510b621063894ad0cee8eaa3a188

Contents?: true

Size: 603 Bytes

Versions: 8

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

require 'puppetfile-resolver/puppetfile/local_module'

module PuppetfileResolver
  module Puppetfile
    module Parser
      module R10KEval
        module Module
          class Local
            def self.implements?(_name, args)
              args.is_a?(Hash) && args.key?(:local)
            rescue StandardError
              false
            end

            def self.to_document_module(title, _args)
              mod = ::PuppetfileResolver::Puppetfile::LocalModule.new(title)
              mod
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppetfile-resolver-0.6.2 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.6.1 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.6.0 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.5.0 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.4.0 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.3.0 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.2.0 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb
puppetfile-resolver-0.1.0 lib/puppetfile-resolver/puppetfile/parser/r10k_eval/module/local.rb