lib/r10k/module_loader/puppetfile/dsl.rb
def mod(name, args = nil)
          if args.is_a?(Hash)
            opts = args
          else
            opts = { version: args }
          end

          if @metadata_only
            @librarian.add_module_metadata(name, opts)
          else
            @librarian.add_module(name, opts)
          end
        end
# A barebones implementation of the Puppetfile DSL
#
# @api private
A barebones implementation of the Puppetfile DSL
A barebones implementation of the Puppetfile DSL
def mod(name, args = nil)
          if args.is_a?(Hash)
            opts = args
          else
            opts = { version: args }
          end
          if @metadata_only
            @librarian.add_module_metadata(name, opts)
          else
            @librarian.add_module(name, opts)
          end
        end
def mod ( name , args = nil ) if args . is_a? ( Hash ) opts = args else opts = { version : args } end if @metadata_only @librarian . add_module_metadata ( name , opts ) else @librarian . add_module ( name , opts ) end end
A barebones implementation of the Puppetfile DSL
A barebones implementation of the Puppetfile DSL
name
args
api
None