Sha256: 076a6c8782ad5636d11bd46bce365cc96c12dcb18870fcae67935ece3e766646
Contents?: true
Size: 794 Bytes
Versions: 18
Compression:
Stored size: 794 Bytes
Contents
# frozen_string_literal: true require_relative '../../../bolt/module_installer/puppetfile/module' # This class represents a resolved Git module. # module Bolt class ModuleInstaller class Puppetfile class GitModule < Module attr_reader :git, :ref def initialize(name, git, ref) super(name) @git = git @ref = ref @type = :git end # Returns a Puppetfile module specification. # def to_spec "mod '#{@name}',\n git: '#{@git}',\n ref: '#{@ref}'" end # Returns a hash that can be used to create a module specification. # def to_hash { 'git' => @git, 'ref' => @ref } end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems