should allow case insensitive match in fabric.contrib.files.contains() #1203

Closed
xoul opened this Issue Oct 2, 2014 · 1 comment

Projects

None yet

2 participants

@xoul
xoul commented Oct 2, 2014

Hi,
maybe fabric.contrib.files.contains() within fabric/contrib/files.py should allow case insensitive match.

Since contains() uses egrep, where should be a way to pass it a "-i".
Maybe a case_insensitive defaulting to false can be added:

fabric.contrib.files.contains(filename, text, exact=False, use_sudo=False, escape=True, shell=False, case_insensitive=False)

@cmattoon cmattoon added a commit to cmattoon/fabric that referenced this issue Dec 21, 2014
@cmattoon cmattoon Feature #1203. Adds keyword argument to contrib.files.contains() to s…
…pecify case sensitivity.
b204eb3
@bitprophet
Member

Rolling into #1240

@bitprophet bitprophet closed this Jan 5, 2015
@bitprophet bitprophet removed the Needs patch label Jan 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment