Commit a4e019bb authored by Antoine Catton's avatar Antoine Catton

Add ability to add extra command line

parent c58a8063
...@@ -172,6 +172,7 @@ class Recipe(object): ...@@ -172,6 +172,7 @@ class Recipe(object):
'--no-ri', '--no-ri',
'--bindir=%s' % bindir, '--bindir=%s' % bindir,
]), ]),
'EXTRA': self.options.get('gem-options', ''),
} }
if '==' in gemname: if '==' in gemname:
gemname, version = gemname.split('==', 1) gemname, version = gemname.split('==', 1)
...@@ -179,7 +180,7 @@ class Recipe(object): ...@@ -179,7 +180,7 @@ class Recipe(object):
s['OPTIONS'] += ' --version %s' % version.strip() s['OPTIONS'] += ' --version %s' % version.strip()
else: else:
s['GEMNAME'] = gemname s['GEMNAME'] = gemname
self.run('%(GEM)s install %(OPTIONS)s %(GEMNAME)s' % s, self.run('%(GEM)s install %(OPTIONS)s %(GEMNAME)s -- %(EXTRA)s' % s,
self._get_env()) self._get_env())
for executable in os.listdir(bindir): for executable in os.listdir(bindir):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment