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

Support removing rake monkey patch #15

Closed

Conversation

robd
Copy link
Contributor

@robd robd commented May 24, 2015

Following on from #13, this improves the rake task formatter logging tests by exercising the rake monkey patch code rather than calling Airbrussh::Formatter.current_rake_task = "xxx" in the tests.

Also adds support for removing the monkey patch if config.monkey_patch_rake=false is called.

@robd robd force-pushed the support-removing-rake-monkey-patch branch from 9fbe090 to bfd5204 Compare May 24, 2015 18:14
robd added 2 commits May 25, 2015 10:50
When config.monkey_patch_rake=false is called, rake monkey patch is now removed. Improve formatter tests to test rake monkey patching by executing commands via a rake task.
@robd robd force-pushed the support-removing-rake-monkey-patch branch from bfd5204 to ebdad32 Compare May 25, 2015 09:54
@robd
Copy link
Contributor Author

robd commented May 26, 2015

Hmm, I need to revisit this because this doesn't actually work in real life in cases where non SSHKit rake tasks are called.

NoMethodError: undefined methodcurrent_rake_task=' for nil:NilClass`

@robd
Copy link
Contributor Author

robd commented May 26, 2015

capistrano/sshkit#257 has now been merged, breaking Airbrussh against master, so I need to rework all my PRs I think, so please do not merge this.

@robd robd closed this May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant