New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
2 participants
@ghost

ghost 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 added a commit to cmattoon/fabric that referenced this issue Dec 21, 2014

cmattoon added a commit to cmattoon/fabric that referenced this issue Dec 21, 2014

@bitprophet

This comment has been minimized.

Member

bitprophet commented Jan 5, 2015

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