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
333 use logger in place of print #13
base: 333-use-logger-in-place-of-print
Are you sure you want to change the base?
333 use logger in place of print #13
Commits on May 27, 2010
Commits on Jun 22, 2010
Commits on Aug 5, 2010
-
Pulling the the patches to upload_project made by Rodrigue Alcazar
From [issue goosemo#10](http://code.fabfile.org/issues/show/10) I am pulling in the patch and unit tests that he's made. I'll tweak them as needed, but the intial pull looks good.
Commits on Aug 14, 2010
Commits on Jan 26, 2011
-
This adds a decorator to make the host list follow order
@ensure_order on a task will side step the use of set() to dedupe, and will instead loop over the host and role lists reappending to temp list if not already present in the temp list. Something to do then as an addition/extension, would be to perhaps add a parameter on the decorator to sort the list.
Commits on Jan 28, 2011
Commits on Feb 4, 2011
-
Adds a @with_settings decorator for tasks (and tests) to use
A simple wrapper around the settings context_manager. Useful for retrofitting old code without having to indent it all for the context block. Signed-off-by: Morgan Goose <morgan.goose@gmail.com>
-
add docblock explaining what with_settings does
Signed-off-by: Morgan Goose <morgan.goose@gmail.com>
-
Modify tests to pass using the new context.
Both tests assume a env.use_shell to be True. There's a test somewhere else in the chain that can cause this to not be the case. This ensures the assumption is always met. Signed-off-by: Morgan Goose <morgan.goose@gmail.com>
-
After getting in patches from Travis' fork, I also added it to the sp…
…hinx docs and an example.
-
Merge branch 'master' of github.com:goosemo/fabric into 184-rsync-pro…
…ject-local-dir-doc-update
Commits on Mar 14, 2011
-
Fixes fabric#307 Update code to match Pep8 standards
- I've updated most of the code to match PEP8. There are a few valid exceptions left behind - Note, stripping trailing whitespace from "expecting" strings in test_networks.py will break tests
-
Fixes 113 updates to allow tuples as host/rols lists
- Added test for roles and hosts as tuples - Add new decorator for testing @with_patched_state_env to better mock out a full state.env - updated the new tests to use ^^ decorator
-
Merge branch 'master' of github.com:goosemo/fabric into 184-rsync-pro…
…ject-local-dir-doc-update
-
Commits on Mar 16, 2011
-
Added args to upload_template for mode support
Addesses issue fabric#117: Add mode support to upload_template() Appears to address fabric#304, Rewrite upload_template to make use of new put() features.
Commits on Mar 22, 2011
Commits on Mar 23, 2011
Commits on Mar 28, 2011
Commits on Apr 2, 2011
Commits on Apr 4, 2011
Commits on Apr 5, 2011
-
-
Merged in Travis Swicegood's fix for fabric#125
I had to pull it out by hand because the patch wouldn't apply, and I also wanted to make a change and hide the main function of append and write, much like run and sudo use a hidden command and are just place holders that enact specific defaults. Anyhow it's a direct pull from this commit: https://github.com/tswicegood/fabric/blob/cc853f165e9b1b2c177579a16e97be16cc9b40d6/fabric/contrib/files.py
-
Merge branch 'master' of github.com:goosemo/fabric into 184-rsync-pro…
…ject-local-dir-doc-update
-
Merged in Casey Banner's work for fabric#170, Fixed conflicts and als…
…o made a failing test pass.
-
Commits on Apr 6, 2011
Commits on Apr 8, 2011
-
Merge branch '117-add-mode-support-to-upload-template' of https://git…
…hub.com/thomasballinger/fabric into 117-add-mode-support-to-upload-template
-
-
-
-
Merge branch '314-update-test-mocks' into 1.1
Conflicts: fabric/main.py tests/test_main.py Fixed the conflicts as well as edited the decorated tests. So now intead of using a patched object we use @with_patched_sate_env()
-
-
Merge branch '117-add-mode-support-to-upload-template' into 1.1
Conflicts: fabric/contrib/files.py Fixed conflicts between this mode change and the backup feature.
-
-
Merge branch '170-exclude-hosts' into 1.1
Conflicts: docs/usage/execution.rst docs/usage/fab.rst fabric/main.py fabric/state.py tests/test_main.py Had to address the conflict resolutions. Needed to put the exclusion bits for hosts towards the bottom below my ensures order stuff. I then needed to make all the tests right, by adding in the extra [] now required in any tests using get_hosts. I also addressed a bug I'd let slip in for contrib.files where I'd made syntax error in the mode and backup merge. Now all tests pass.
-
Merge branch '283-with-settings-decorator' into 1.1
Conflicts: docs/api/core/decorators.rst fabric/decorators.py Simple conflicts to resolve, just that the two decorators ensures_order and with_settings, were both developed in parallel, so they just wanted to insert into the same place on the merge. Just removed the merge chars and fixed the rst to resolve.
-
-
-
-
Merge branch '283-with-settings-decorator' into 1.1
Conflicts: fabric/api.py
-
-
-
Commits on Apr 12, 2011
-
Got a report from Vladimir Lazarenko on irc that using the 1.1 branch which includes this, was raising an error: .../fabric/decorators.py:162: Warning: 'with' will become a reserved keyword in Python 2.6 This cropped up because I'd forgotten to make the from __future__ import in the decorators module.
-
-
Commits on Apr 14, 2011
Commits on Apr 15, 2011
Commits on Apr 20, 2011
Commits on Apr 22, 2011
Commits on Apr 23, 2011
Commits on Apr 25, 2011
-
Fix bug with fabric.api.put(...)
``mode`` kwarg didn't take effect while uploading file-like objects
-
-
-
-
-
-
Commits on Apr 26, 2011
Commits on Apr 27, 2011
Commits on Apr 29, 2011
Commits on May 2, 2011
Commits on May 29, 2011
Commits on May 31, 2011
-
Apply patch derived from goosemo/76-task-decorator
* git diff 1.1...goosemo/76-task-decorator > 76.diff * git apply -v --check 76.diff * hack hack hack * git apply 76.diff Removed a handful of minor tweaks not relevant to the feature at hand.
-
-
-
Commits on Jun 1, 2011
Commits on Jun 6, 2011
Commits on Jun 7, 2011
Commits on Jun 8, 2011
Commits on Jun 9, 2011
Commits on Jun 20, 2011
Commits on Jun 21, 2011
-
-
Also rejiggers a ton of stuff for arguably cleaner handling of namespace trees.
-
-
-
-
-
Commits on Jun 22, 2011
-
-
Implements fabric#353: SSH keepalive.
Based on a cherry-pick of 81e57d7
-
-
-
-
Commits on Jun 24, 2011
-
Fixes fabric#329: reboot() broken for partial host strings
Conflicts: fabric/network.py
-
-
-
-
-
-
-
Commits on Jun 25, 2011
Commits on Jun 29, 2011
Commits on Aug 31, 2011
-
Merge remote-tracking branch 'upstream/master' into logging
* upstream/master: (123 commits) Remove confusing, extraneous note re: example Fix main loop to look for Task.run() Fix up docs.push Update tag list for manually generated docs Task decorator must be first Enhance docs on Task subclass usage Dev version for 1.2 Dev version for 1.1.1 Version bump for 1.0.2 Silly/shitty little sanity-test runner Fixes fabric#345, contains() returns boolean, not retval. Fix I/O race condition Formatting Add test re fabric#329 Add 1.0.2 note to 1.1 release docs Note that 1.0.2 will contain 0.9.7 Fixes fabric#329: reboot() broken for partial host strings Dogfooding: use new-style tasks, namespaces in core fabfile Re fabric#56, don't allow leaf classic modules to pollute new-style trees Use FabricTest to isolate namespace tests ... Conflicts: fabric/main.py fabric/network.py fabric/operations.py
-
Patching the logging stream in mock_streams as well
Because logging gets initialized early in the game, mock_streams is not working. The logging output goes to the actual stderr stream and not to the mocked stream.
-
In some cases there was a mismatch between what was actually printed through the logger and what was expected Some of the testcases swapped expected and actual output In addition there is a fundamental change hidden here: The console logger will output by default to stderr This is probably fine for warn/fatal etc messages, however it is a bit dubious for info messages. In some cases I had to change the stream the testcase got the results from to stdall to get it working.
-