Skip to content
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
Closed

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

xoul opened this issue Oct 2, 2014 · 1 comment
Labels

Comments

@ghost
Copy link

@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
Copy link
Member

@bitprophet 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant