]> scripts.mit.edu Git - wizard.git/commit
Move wizard.scripts module to plugins, added hooks accordingly.
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 8 Jun 2010 06:06:34 +0000 (23:06 -0700)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 8 Jun 2010 06:06:34 +0000 (23:06 -0700)
commit6a287fd5e5ada7a97b0f3df96bb4c7ccba4b562d
treeddfbd9f0337a17358ab56914ef3142879c67093a
parentdf68d9aea68184aa719771712922f9ded876ffb7
Move wizard.scripts module to plugins, added hooks accordingly.

Renamed the following functions:

    * scripts.fill_url -> deploy.web (now returns list of candidate
      urls and doesn't accept boolean old_style parameter)
    * scripts.get_disk_usage -> util.disk_usage (disk_usage now
      returns values in bytes, not kibibytes)

Scripts specific logic was refactored to scripts plugin.  Scripts
plugin got a setup.py file.

Created these plugin entry points:

    * wizard.deploy.web
    * wizard.user.quota

Added new functions:

    * user.quota (wizard.user module is new)

Fixed bugs:

    * git status on later versions of Git doesn't vary exit code;
      use diff-files and diff-index instead.

Restructured the deploy.Deployment.url code to run the generator of URLs
given to it by deploy.web.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
28 files changed:
doc/index.rst
doc/module/wizard.deploy.rst
doc/module/wizard.scripts.rst [deleted file]
doc/module/wizard.util.rst
doc/plugin.rst
plugins/scripts/.gitignore [new file with mode: 0644]
plugins/scripts/setup.py [new file with mode: 0644]
plugins/scripts/wizard/scripts.py [moved from wizard/scripts.py with 52% similarity]
pull.sh
tests/mediawiki-crlf-upgrade-test.sh
tests/mediawiki-install
wizard/app/__init__.py
wizard/app/wordpress.py
wizard/command/mass_upgrade.py
wizard/command/quota.py
wizard/command/upgrade.py
wizard/deploy.py
wizard/install/__init__.py
wizard/tests/disk_usage_test/dont_ignore_me/file_1 [moved from wizard/tests/scripts_test/dont_ignore_me/file_1 with 100% similarity]
wizard/tests/disk_usage_test/file_2 [moved from wizard/tests/scripts_test/file_2 with 100% similarity]
wizard/tests/disk_usage_test/file_4 [moved from wizard/tests/scripts_test/file_4 with 100% similarity]
wizard/tests/disk_usage_test/ignore_me/file_16 [moved from wizard/tests/scripts_test/ignore_me/file_16 with 100% similarity]
wizard/tests/disk_usage_test/ignore_me/file_8 [moved from wizard/tests/scripts_test/ignore_me/file_8 with 100% similarity]
wizard/tests/disk_usage_test/ignore_me/ignore_me_too/file_32 [moved from wizard/tests/scripts_test/ignore_me/ignore_me_too/file_32 with 100% similarity]
wizard/tests/scripts_test.py [deleted file]
wizard/tests/util_test.py
wizard/user.py [new file with mode: 0644]
wizard/util.py