Sha256: b225da3713bace16f025814c0da2bde435bf953fca997e071e9d070c43775fba

Contents?: true

Size: 528 Bytes

Versions: 71

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

# Join file paths using ruby's `File.join()` function.
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)
    # Send Analytics Report
    Puppet.lookup(:bolt_executor) {}&.report_function_call(self.class.name)

    File.join(paths)
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
bolt-3.16.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.15.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.14.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.13.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.12.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.11.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.10.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.9.2 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.9.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.9.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.8.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.8.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.7.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.7.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.6.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.6.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.5.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.4.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.3.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.1.0 bolt-modules/file/lib/puppet/functions/file/join.rb