<commit_before>= webmethadone

Provides a command line interface for Software AG's webMethods Integration Server (http://www.softwareag.com/Corporate/products/wm/default.asp) allowing you to synchronously start/stop/restart the server, and install/reload/enable/disable/delete packages, making scripting of maintenance tasks against Integration Server a possibility.

Doing these tasks synchronously is the key for scripting, so that you can ensure Integration Server is started before installing a fix and then restarting it post-fix.  Checking that the state of the Windows service is RUNNING is no indicator that Integration Server has finished starting up and is now ready to process work.

  Usage: webmethadone [options] [package]
          --start                      Start webMethods Integration Server
          --stop                       Stop webMethods Integration Server
          --restart                    Restart webMethods Integration Server
          --install                    Install a package
          --delete                     Delete a package
          --disable                    Disable a package
          --enable                     Enable a package
          --reload                     Reload a package
      -l, --url URL                    URL to connect to a webMethods Integration Server
      -u, --user USER                  USER to connect with
      -p, --password PASSWORD          PASSWORD to connect with
      -s, --service SERVICE            webMethods Integration Server Windows SERVICE
      -t, --timeout TIMEOUT            HTTP read TIMEOUT in seconds
      -h, --help                       Show help
      
Example: ensure IS is started, install TNS_7.1.2_Fix4 packages, then restart

  webmethadone --url http://localhost:5555 --user Administrator --password manage -s webMethodsIntegrationServer_7.1 --start
  webmethadone --url http://localhost:5555 --user Administrator --password manage --install WmTN_7.1.2_Fix4.zip
  webmethadone --url http://localhost:5555 --user Administrator --password manage --install WmTNWeb7.1.2_Fix4.zip
  webmethadone --url http://localhost:5555 --user Administrator --password manage -s webMethodsIntegrationServer_7.1 --restart

Caveats:
* assumes a Windows platform
* assumes Integration Server is installed as a Windows Service
* when installing a package its zip archive should already be in ./replication/inbound

== Contributing to webmethadone
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2011 <NAME>. See LICENSE.txt for
further details.
<commit_msg>use full switches in examples in readme<commit_after>= webmethadone

Provides a command line interface for Software AG's webMethods Integration Server (http://www.softwareag.com/Corporate/products/wm/default.asp) allowing you to synchronously start/stop/restart the server, and install/reload/enable/disable/delete packages, making scripting of maintenance tasks against Integration Server a possibility.

Doing these tasks synchronously is the key for scripting, so that you can ensure Integration Server is started before installing a fix and then restarting it post-fix.  Checking that the state of the Windows service is RUNNING is no indicator that Integration Server has finished starting up and is now ready to process work.

  Usage: webmethadone [options] [package]
          --start                      Start webMethods Integration Server
          --stop                       Stop webMethods Integration Server
          --restart                    Restart webMethods Integration Server
          --install                    Install a package
          --delete                     Delete a package
          --disable                    Disable a package
          --enable                     Enable a package
          --reload                     Reload a package
      -l, --url URL                    URL to connect to a webMethods Integration Server
      -u, --user USER                  USER to connect with
      -p, --password PASSWORD          PASSWORD to connect with
      -s, --service SERVICE            webMethods Integration Server Windows SERVICE
      -t, --timeout TIMEOUT            HTTP read TIMEOUT in seconds
      -h, --help                       Show help
      
Example: ensure IS is started, install TNS_7.1.2_Fix4 packages, then restart

  webmethadone --url http://localhost:5555 --user Administrator --password manage --service webMethodsIntegrationServer_7.1 --start
  webmethadone --url http://localhost:5555 --user Administrator --password manage --install WmTN_7.1.2_Fix4.zip
  webmethadone --url http://localhost:5555 --user Administrator --password manage --install WmTNWeb7.1.2_Fix4.zip
  webmethadone --url http://localhost:5555 --user Administrator --password manage --service webMethodsIntegrationServer_7.1 --restart

Caveats:
* assumes a Windows platform
* assumes Integration Server is installed as a Windows Service
* when installing a package its zip archive should already be in ./replication/inbound

== Contributing to webmethadone
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

== Copyright

Copyright (c) 2011 <NAME>. See LICENSE.txt for
further details.

{'fraction_non_alphanumeric': 0.056179775280898875, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 2.566499721758486, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6087825', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1465, 'n_words': 748}