Page MenuHomeSoftware Heritage

docker_exec_flags.rb
No OneTemporary

docker_exec_flags.rb

require 'shellwords'
module Puppet::Parser::Functions
# Transforms a hash into a string of docker exec flags
newfunction(:docker_exec_flags, :type => :rvalue) do |args|
opts = args[0] || {}
flags = []
if opts['detach']
flags << '--detach=true'
end
if opts['interactive']
flags << '--interactive=true'
end
if opts['tty']
flags << '--tty=true'
end
flags.flatten.join(" ")
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Jun 21 2025, 9:33 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3430980

Event Timeline