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-4.0.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.29.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.28.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.27.4 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.27.2 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.27.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.26.2 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.26.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.25.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.24.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.23.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.23.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.22.1 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.22.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.21.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.20.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.19.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.18.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.17.0 bolt-modules/file/lib/puppet/functions/file/join.rb
bolt-3.16.1 bolt-modules/file/lib/puppet/functions/file/join.rb