The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

wtscript2json - convert read configuration into JSON

VERSION

version 0.100

SYNOPSIS

  # search in $config->{script_dirs} for any loadable script config
  $ wtscript2json --input-files service1/script1,service1/script2,service2/cool_script \
      --output-files /opt/new_checks/service1/script1.json \
      --output-files /opt/new_checks/service1/script2.json \
      --output-files /opt/new_checks/service2/cool_script.json

  # in-location conversion ...
  $ find . -name "*splunk*"
  ./check_web_config/log/test_splunk_1.txt
  ./check_web_config/log/test_splunk_2.txt
  ./check_web_config/log/test_splunk_3.txt
  ./check_web_config/log/test_splunk_4.txt
  $ wtscript2json --input-files log/test_splunk[1-4] --output-pattern .txt .json
  $ find . -name "*splunk*"
  $ find . -name "*splunk*"
  ./check_web_config/log/test_splunk_1.txt
  ./check_web_config/log/test_splunk_2.txt
  ./check_web_config/log/test_splunk_3.txt
  ./check_web_config/log/test_splunk_4.txt
  ./check_web_config/log/test_splunk_4.json
  ./check_web_config/log/test_splunk_3.json
  ./check_web_config/log/test_splunk_2.json
  ./check_web_config/log/test_splunk_1.json

DESCRIPTION

wtscript2json is a helper to convert WebTest Script files into a modern format. Currently the format is hard-coded to JSON.

To avoid conflicts or duplicates running check_web(2), it's recommended to use different script_dirs in special configuration files for check_web(2) and wtscript2json (check-web2.json vs. wtscript2json.json vs. check_web.json as common configuration file for both). See "load_config" in WWW::Mechanize::Script::Util for further information.

BUGS

Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Mechanize-Script or by email to bug-www-mechanize-script@rt.cpan.org.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Jens Rehsack <rehsack@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Jens Rehsack.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.