Various commits to enable no-shell or safe-shell usage, more to come.

This commit is contained in:
Michael DeHaan
2014-03-12 16:44:03 -04:00
parent 60a7f57300
commit 6010e74839
6 changed files with 29 additions and 22 deletions

View File

@@ -89,7 +89,7 @@ def get_rubygems_path(module):
return module.get_bin_path('gem', True)
def get_rubygems_version(module):
cmd = [get_rubygems_path(module), '--version']
cmd = [ get_rubygems_path(module), '--version' ]
(rc, out, err) = module.run_command(cmd, check_rc=True)
match = re.match(r'^(\d+)\.(\d+)\.(\d+)', out)