module SyncWrap::UserData
Utility methods for generating scripts to pass as user data.
Public Class Methods
no_tty_sudoer( user, opts = {} )
click to toggle source
Returns an sh script to allow no password, no tty sudo for a specified user by writing a file to /etc/sudoers.d/<user>
# File lib/syncwrap/user_data.rb, line 29 def no_tty_sudoer( user, opts = {} ) self.sudoers_d_script( user, opts ) end