Commit Graph

15 Commits (d80f4cee9d105fbe4d77a2a3d84abb275a1702a4)

Author SHA1 Message Date
Koen Punt d9f9234084 Allow gem executable to contain spaces
rbenv has a special exec function which loads the correct ruby version before executing a command.
The syntax for this is `/usr/local/rbenv/bin/rbenv exec gem ...` for example.
But previously when specifying executable='/usr/local/rbenv/bin/rbenv exec gem' this would not work because the string was treated as one executable. This PR fixes that by splitting the executable on spaces.
11 years ago
Michael DeHaan 5f14b6e637 Rename prerelease to pre_release. 11 years ago
Bob Zoller e1a1ac1e76 gem module supports prerelease (--pre) 11 years ago
Michael DeHaan 2a656b2cf4 Merge branch 'devel' of https://github.com/drewblas/ansible into devel 11 years ago
Michael DeHaan 6010e74839 Various commits to enable no-shell or safe-shell usage, more to come. 11 years ago
Drew 44578e030d Fix proper defaulting/required of 'state' for gem module
The docs for 'gem' say state is required, but the actual code says it's not required.

If it's not included (and there's no default) then the if block falls through with no changes and no errors (it neither adds nor removes the gem).

This change synchronizes the docs with the code.  It also adds the sane default of state=present, which is consistent with all other modules with the 'state' field.
11 years ago
Manuel Tiago Pereira e563f847ec Fixes #5819: Added --executables to gem uninstall command. 11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
Mickaël Rémond 007a3fe154 Add executable parameter to find gem binary in gem module
This is especially needed with rvm where gem binary can be in unusual locations
11 years ago
Andy Kluger ee054a491a Fix for Issue #2470 - gem version string processing
This fix assumes that no sane gem version has spaces in it, so when one like that is encountered, it will get truncated at the first space.
11 years ago
Jocelyn Jaubert f958a5ac81 Correctly handle option user_install in gem module 11 years ago
Michael DeHaan 7961a81b3f Update docs to add version_added attribute. 12 years ago
Dmitry Kolobaev 8745de11a6 Update gem
I've added ability to install gems in system-wide manner with --no-user-install options
12 years ago
Jan-Piet Mens 30d641094b Docs: consistently format playbook EXAMPLES 12 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago