Hi Team,
I have a ruby task which calls a .ps1 file on puppet master. As a part of
calling the puppet file i need to define the file path in ruby task.
file_path = "/etc/puppetlabs/code/environments/<env name>/modules/<module
name>/files/<file name>.ps1"
script_params = "<parameters>"
# execution of the script
cmd_output = `/opt/microsoft/powershell/7/pwsh -NonInteractive -File
#{file_path} #{script_params}`
Can someone please suggest how to replace the file_path with relative paths
in ruby task?
Regards
Vinay
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/9f6da7a8-90b5-4a15-90e4-9d79774ef3a9n%40googlegroups.com.