builder/extra/cluster-home/lib/ruby/tungsten/install.rb
def tungsten_sudo_prefix
    if self.user() == nil || ENV['USER'] == self.user()
      return ""
    else
      return "sudo -u #{self.user()} -n -i "
    end
  end
# Build a sudo prefix to run a command as the tungsten system user
Build a sudo prefix to run a command as the tungsten system user
Build a sudo prefix to run a command as the tungsten system user
def tungsten_sudo_prefix
    if self.user() == nil || ENV['USER'] == self.user()
      return ""
    else
      return "sudo -u #{self.user()} -n -i "
    end
  end
def tungsten_sudo_prefix if self . user ( ) == nil || ENV [ 'USER' ] == self . user ( ) return "" else return "sudo -u #{self.user()} -n -i " end end
Build a sudo prefix to run a command as the tungsten system user
Build a sudo prefix to run a command as the tungsten system user