Sha256: a02fd232328ce9d3dd99395ed387f535f85bc7a0ee953464cfa4e121a4d5dc30

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

# Join file paths.
Puppet::Functions.create_function(:'file::join') do
  # @param paths The paths to join.
  # @return The joined file path.
  # @example Join file paths
  #   file::join('./path', 'to/files')
  dispatch :join do
    required_repeated_param 'String', :paths
    return_type 'String'
  end

  def join(*paths)
    Puppet.lookup(:bolt_executor) {}&.report_function_call(self.class.name)
    File.join(paths)
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bolt-2.9.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.8.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.7.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.6.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.5.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.4.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.3.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.3.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.2.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.1.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.0.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-2.0.0 bolt-modules/file/lib/puppet/functions/file/join.rb