Sha256: aebacf48b82b0238b0ec2095dcc1ebbddce111dbe3b8058f9a0b8109667b91b2
Contents?: true
Size: 532 Bytes
Versions: 31
Compression:
Stored size: 532 Bytes
Contents
module Veewee module Provider module Core module BoxCommand def sudo(scriptname) if definition.ssh_user=="root" return "#{scriptname}" else command=definition.sudo_cmd newcommand=command.gsub(/%p/,"#{definition.ssh_password}") newcommand.gsub!(/%u/,"#{definition.ssh_user}") newcommand.gsub!(/%f/,"#{scriptname}") return newcommand end end end #Module end #Module end #Module end #Module
Version data entries
31 entries across 31 versions & 2 rubygems