cloud-toaster 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/LICENSE +202 -0
- data/README.md +54 -0
- data/Rakefile +51 -0
- data/VERSION +1 -0
- data/bin/strace-4.8_patched/strace-i686 +0 -0
- data/bin/strace-4.8_patched/strace-x86_64 +0 -0
- data/bin/toaster +74 -0
- data/chef/cookbooks/chef-solo-search/CHANGELOG +16 -0
- data/chef/cookbooks/chef-solo-search/Gemfile +8 -0
- data/chef/cookbooks/chef-solo-search/LICENSE +202 -0
- data/chef/cookbooks/chef-solo-search/NOTICE +18 -0
- data/chef/cookbooks/chef-solo-search/README.md +143 -0
- data/chef/cookbooks/chef-solo-search/Rakefile +10 -0
- data/chef/cookbooks/chef-solo-search/libraries/search/overrides.rb +100 -0
- data/chef/cookbooks/chef-solo-search/libraries/search/parser.rb +222 -0
- data/chef/cookbooks/chef-solo-search/libraries/search.rb +75 -0
- data/chef/cookbooks/chef-solo-search/libraries/vendor/chef/solr_query/lucene.treetop +150 -0
- data/chef/cookbooks/chef-solo-search/libraries/vendor/chef/solr_query/lucene_nodes.rb +285 -0
- data/chef/cookbooks/chef-solo-search/libraries/vendor/chef/solr_query/query_transform.rb +65 -0
- data/chef/cookbooks/chef-solo-search/metadata.rb +11 -0
- data/chef/cookbooks/chef-solo-search/recipes/default.rb +3 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/node/alpha.json +10 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/node/beta.json +10 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/node/without_json_class.json +7 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/users/jerry.json +8 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/users/lea.json +10 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/users/mike.json +13 -0
- data/chef/cookbooks/chef-solo-search/tests/data/data_bags/users/tom.json +10 -0
- data/chef/cookbooks/chef-solo-search/tests/gemfiles/Gemfile.10 +4 -0
- data/chef/cookbooks/chef-solo-search/tests/gemfiles/Gemfile.11 +5 -0
- data/chef/cookbooks/chef-solo-search/tests/test_data_bags.rb +45 -0
- data/chef/cookbooks/chef-solo-search/tests/test_search.rb +244 -0
- data/chef/cookbooks/lxc/attributes/create_lxc.rb +8 -0
- data/chef/cookbooks/lxc/attributes/general.rb +15 -0
- data/chef/cookbooks/lxc/attributes/init_bare_os.rb +15 -0
- data/chef/cookbooks/lxc/attributes/init_proto.rb +18 -0
- data/chef/cookbooks/lxc/attributes/install_ruby.rb +51 -0
- data/chef/cookbooks/lxc/attributes/mount_volume.rb +11 -0
- data/chef/cookbooks/lxc/attributes/setup_host.rb +9 -0
- data/chef/cookbooks/lxc/attributes/setup_proxy.rb +3 -0
- data/chef/cookbooks/lxc/attributes/start_lxc.rb +11 -0
- data/chef/cookbooks/lxc/attributes/stop_lxc.rb +3 -0
- data/chef/cookbooks/lxc/files/install.chef.sh +78 -0
- data/chef/cookbooks/lxc/metadata.json +6 -0
- data/chef/cookbooks/lxc/recipes/create_lxc.rb +106 -0
- data/chef/cookbooks/lxc/recipes/init_bare_os.rb +82 -0
- data/chef/cookbooks/lxc/recipes/init_proto.rb +417 -0
- data/chef/cookbooks/lxc/recipes/install_docker.rb +61 -0
- data/chef/cookbooks/lxc/recipes/install_ruby.rb +28 -0
- data/chef/cookbooks/lxc/recipes/mount_volume.rb +63 -0
- data/chef/cookbooks/lxc/recipes/setup_database.rb +22 -0
- data/chef/cookbooks/lxc/recipes/setup_host.rb +179 -0
- data/chef/cookbooks/lxc/recipes/setup_proxy.rb +157 -0
- data/chef/cookbooks/lxc/recipes/start_lxc.rb +180 -0
- data/chef/cookbooks/lxc/recipes/stop_lxc.rb +86 -0
- data/chef/cookbooks/mysql/CHANGELOG.md +391 -0
- data/chef/cookbooks/mysql/README.md +211 -0
- data/chef/cookbooks/mysql/attributes/default.rb +22 -0
- data/chef/cookbooks/mysql/libraries/helpers.rb +277 -0
- data/chef/cookbooks/mysql/libraries/matchers.rb +17 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client.rb +10 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_debian.rb +37 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_fedora.rb +38 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_freebsd.rb +33 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_omnios.rb +41 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_rhel.rb +42 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_smartos.rb +33 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_suse.rb +37 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_client_ubuntu.rb +37 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service.rb +10 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_debian.rb +193 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_fedora.rb +157 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_freebsd.rb +151 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_omnios.rb +232 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_rhel.rb +318 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_smartos.rb +216 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_suse.rb +170 -0
- data/chef/cookbooks/mysql/libraries/provider_mysql_service_ubuntu.rb +218 -0
- data/chef/cookbooks/mysql/libraries/resource_mysql_client.rb +11 -0
- data/chef/cookbooks/mysql/libraries/resource_mysql_service.rb +194 -0
- data/chef/cookbooks/mysql/metadata.json +40 -0
- data/chef/cookbooks/mysql/metadata.rb +20 -0
- data/chef/cookbooks/mysql/recipes/client.rb +22 -0
- data/chef/cookbooks/mysql/recipes/server.rb +33 -0
- data/chef/cookbooks/mysql/recipes/server_deprecated.rb +23 -0
- data/chef/cookbooks/mysql/templates/default/5.0/my.cnf.erb +38 -0
- data/chef/cookbooks/mysql/templates/default/5.1/my.cnf.erb +38 -0
- data/chef/cookbooks/mysql/templates/default/5.5/my.cnf.erb +38 -0
- data/chef/cookbooks/mysql/templates/default/5.6/my.cnf.erb +39 -0
- data/chef/cookbooks/mysql/templates/default/apparmor/usr.sbin.mysqld.erb +40 -0
- data/chef/cookbooks/mysql/templates/default/debian/debian.cnf.erb +12 -0
- data/chef/cookbooks/mysql/templates/default/debian/mysql-server.seed.erb +10 -0
- data/chef/cookbooks/mysql/templates/default/deprecated/my.cnf.erb +374 -0
- data/chef/cookbooks/mysql/templates/default/grants/grants.sql.erb +27 -0
- data/chef/cookbooks/mysql/templates/default/omnios/mysql.xml.erb +26 -0
- data/chef/cookbooks/mysql/templates/default/omnios/svc.method.mysqld.erb +29 -0
- data/chef/cookbooks/mysql/templates/default/smartos/mysql.xml.erb +32 -0
- data/chef/cookbooks/mysql/templates/default/smartos/svc.method.mysqld.erb +29 -0
- data/chef/cookbooks/openssl/README.md +37 -0
- data/chef/cookbooks/openssl/libraries/secure_password.rb +37 -0
- data/chef/cookbooks/openssl/metadata.json +30 -0
- data/chef/cookbooks/openssl/metadata.rb +8 -0
- data/chef/cookbooks/openssl/recipes/default.rb +19 -0
- data/chef/cookbooks/ssh/attributes/default.rb +8 -0
- data/chef/cookbooks/ssh/recipes/authorize_key.rb +20 -0
- data/chef/cookbooks/toaster/attributes/testing.rb +37 -0
- data/chef/cookbooks/toaster/libraries/default.rb +61 -0
- data/chef/cookbooks/toaster/recipes/post__cakephp__default.rb +27 -0
- data/chef/cookbooks/toaster/recipes/post__cube__default.rb +26 -0
- data/chef/cookbooks/toaster/recipes/post__drupal__default.rb +16 -0
- data/chef/cookbooks/toaster/recipes/post__icinga__default.rb +9 -0
- data/chef/cookbooks/toaster/recipes/post__node__default.rb +16 -0
- data/chef/cookbooks/toaster/recipes/post__virtualbox__default.rb +12 -0
- data/chef/cookbooks/toaster/recipes/post__wordpress__default.rb +12 -0
- data/chef/cookbooks/toaster/recipes/pre__aegir__default.rb +12 -0
- data/chef/cookbooks/toaster/recipes/pre__app__default.rb +3 -0
- data/chef/cookbooks/toaster/recipes/pre__cakephp__default.rb +24 -0
- data/chef/cookbooks/toaster/recipes/pre__cube__default.rb +9 -0
- data/chef/cookbooks/toaster/recipes/pre__disco__default.rb +21 -0
- data/chef/cookbooks/toaster/recipes/pre__drbd__default.rb +7 -0
- data/chef/cookbooks/toaster/recipes/pre__eaccelerator__default.rb +2 -0
- data/chef/cookbooks/toaster/recipes/pre__elasticsearch-head__default.rb +11 -0
- data/chef/cookbooks/toaster/recipes/pre__elasticsearch__default.rb +6 -0
- data/chef/cookbooks/toaster/recipes/pre__gitosis__default.rb +17 -0
- data/chef/cookbooks/toaster/recipes/pre__kafka__default.rb +3 -0
- data/chef/cookbooks/toaster/recipes/pre__munin__server.rb +6 -0
- data/chef/cookbooks/toaster/recipes/pre__mysql__server.rb +4 -0
- data/chef/cookbooks/toaster/recipes/pre__nagios__default.rb +3 -0
- data/chef/cookbooks/toaster/recipes/pre__netkernel__default.rb +24 -0
- data/chef/cookbooks/toaster/recipes/pre__php__default.rb +2 -0
- data/chef/cookbooks/toaster/recipes/pre__postgresql__server.rb +3 -0
- data/chef/cookbooks/toaster/recipes/pre__pxe_dust__default.rb +9 -0
- data/chef/cookbooks/toaster/recipes/pre__pxe_install_server__default.rb +6 -0
- data/chef/cookbooks/toaster/recipes/pre__riak__default.rb +40 -0
- data/chef/cookbooks/toaster/recipes/pre__sensu__default.rb +9 -0
- data/chef/cookbooks/toaster/recipes/pre__sol__default.rb +2 -0
- data/chef/cookbooks/toaster/recipes/pre__solr__default.rb +6 -0
- data/chef/cookbooks/toaster/recipes/pre__sonar__default.rb +2 -0
- data/chef/cookbooks/toaster/recipes/pre__storm__default.rb +3 -0
- data/chef/cookbooks/toaster/recipes/pre__vmware__tools.rb +4 -0
- data/chef/cookbooks/toaster/recipes/pre__wordpress__default.rb +17 -0
- data/chef/cookbooks/toaster/recipes/pre__xen__default.rb +7 -0
- data/chef/cookbooks/toaster/recipes/pre__znc__default.rb +7 -0
- data/chef/cookbooks/toaster/recipes/testing.rb +241 -0
- data/chef/cookbooks/toaster/recipes/testing_post.rb +36 -0
- data/chef/cookbooks/yum/CHANGELOG.md +212 -0
- data/chef/cookbooks/yum/README.md +268 -0
- data/chef/cookbooks/yum/attributes/main.rb +97 -0
- data/chef/cookbooks/yum/libraries/matchers.rb +27 -0
- data/chef/cookbooks/yum/metadata.json +34 -0
- data/chef/cookbooks/yum/metadata.rb +13 -0
- data/chef/cookbooks/yum/providers/globalconfig.rb +37 -0
- data/chef/cookbooks/yum/providers/repository.rb +85 -0
- data/chef/cookbooks/yum/recipes/default.rb +34 -0
- data/chef/cookbooks/yum/resources/globalconfig.rb +105 -0
- data/chef/cookbooks/yum/resources/repository.rb +63 -0
- data/chef/cookbooks/yum/templates/default/main.erb +251 -0
- data/chef/cookbooks/yum/templates/default/repo.erb +109 -0
- data/chef/cookbooks/yum-mysql-community/CHANGELOG.md +67 -0
- data/chef/cookbooks/yum-mysql-community/README.md +137 -0
- data/chef/cookbooks/yum-mysql-community/attributes/mysql-connectors-community.rb +31 -0
- data/chef/cookbooks/yum-mysql-community/attributes/mysql55-community.rb +29 -0
- data/chef/cookbooks/yum-mysql-community/attributes/mysql56-community.rb +31 -0
- data/chef/cookbooks/yum-mysql-community/files/default/mysql_pubkey.asc +33 -0
- data/chef/cookbooks/yum-mysql-community/metadata.json +30 -0
- data/chef/cookbooks/yum-mysql-community/metadata.rb +8 -0
- data/chef/cookbooks/yum-mysql-community/recipes/connectors.rb +48 -0
- data/chef/cookbooks/yum-mysql-community/recipes/mysql55.rb +48 -0
- data/chef/cookbooks/yum-mysql-community/recipes/mysql56.rb +48 -0
- data/config.json +34 -0
- data/lib/toaster/api.rb +447 -0
- data/lib/toaster/chef/chef_listener.rb +514 -0
- data/lib/toaster/chef/chef_node_inspector.rb +165 -0
- data/lib/toaster/chef/chef_util.rb +865 -0
- data/lib/toaster/chef/failsafe_resource_parser.rb +140 -0
- data/lib/toaster/chef/resource_inspector.rb +536 -0
- data/lib/toaster/db/cache.rb +98 -0
- data/lib/toaster/db/cached_db.rb +53 -0
- data/lib/toaster/db/cgi_session_cache.rb +209 -0
- data/lib/toaster/db/db.rb +98 -0
- data/lib/toaster/db/mysql.rb +18 -0
- data/lib/toaster/db/ram_cache.rb +203 -0
- data/lib/toaster/markup/jdom-1.1.jar +0 -0
- data/lib/toaster/markup/jdom-b7.jar +0 -0
- data/lib/toaster/markup/markup_util.rb +437 -0
- data/lib/toaster/markup/vmtools-utils-0.5.jar +0 -0
- data/lib/toaster/markup/xmldiff.sh +5 -0
- data/lib/toaster/model/additional_property.rb +11 -0
- data/lib/toaster/model/automation.rb +218 -0
- data/lib/toaster/model/automation_attribute.rb +13 -0
- data/lib/toaster/model/automation_run.rb +104 -0
- data/lib/toaster/model/ignore_property.rb +11 -0
- data/lib/toaster/model/key_value_pair.rb +59 -0
- data/lib/toaster/model/run_attribute.rb +17 -0
- data/lib/toaster/model/state.rb +17 -0
- data/lib/toaster/model/state_change.rb +79 -0
- data/lib/toaster/model/task.rb +292 -0
- data/lib/toaster/model/task_execution.rb +76 -0
- data/lib/toaster/model/task_parameter.rb +66 -0
- data/lib/toaster/model/user.rb +32 -0
- data/lib/toaster/ohai/_disabled_/network_ports.rb +81 -0
- data/lib/toaster/ohai/apache/apache.rb +48 -0
- data/lib/toaster/ohai/cron/cron.rb +32 -0
- data/lib/toaster/ohai/files/_meta.rb +30 -0
- data/lib/toaster/ohai/files/files.rb +20 -0
- data/lib/toaster/ohai/gems/gems.rb +19 -0
- data/lib/toaster/ohai/groups/groups.rb +20 -0
- data/lib/toaster/ohai/iptables/iptables.rb +48 -0
- data/lib/toaster/ohai/mounts/mounts.rb +26 -0
- data/lib/toaster/ohai/mysql/mysql.rb +31 -0
- data/lib/toaster/ohai/packages/_meta.rb +86 -0
- data/lib/toaster/ohai/packages/packages.rb +33 -0
- data/lib/toaster/ohai/ports/ports.rb +21 -0
- data/lib/toaster/ohai/routes/routes.rb +25 -0
- data/lib/toaster/ohai/services/services.rb +42 -0
- data/lib/toaster/ohai/users/users.rb +17 -0
- data/lib/toaster/state/convergence.rb +197 -0
- data/lib/toaster/state/idempotence.rb +192 -0
- data/lib/toaster/state/ptrace_util.rb +48 -0
- data/lib/toaster/state/state_node.rb +105 -0
- data/lib/toaster/state/state_transition.rb +38 -0
- data/lib/toaster/state/state_transition_graph.rb +701 -0
- data/lib/toaster/state/syscall_tracer.rb +317 -0
- data/lib/toaster/state/system_state.rb +349 -0
- data/lib/toaster/state/transition_edge.rb +65 -0
- data/lib/toaster/test/test_attribute.rb +19 -0
- data/lib/toaster/test/test_case.rb +175 -0
- data/lib/toaster/test/test_coverage.rb +147 -0
- data/lib/toaster/test/test_coverage_goal.rb +108 -0
- data/lib/toaster/test/test_generator.rb +246 -0
- data/lib/toaster/test/test_orchestrator.rb +165 -0
- data/lib/toaster/test/test_result.rb +73 -0
- data/lib/toaster/test/test_runner.rb +394 -0
- data/lib/toaster/test/test_suite.rb +151 -0
- data/lib/toaster/test_manager.rb +281 -0
- data/lib/toaster/toaster_app_service.rb +141 -0
- data/lib/toaster/util/blocking_map.rb +80 -0
- data/lib/toaster/util/combinatorial.rb +58 -0
- data/lib/toaster/util/config.rb +103 -0
- data/lib/toaster/util/docker.rb +71 -0
- data/lib/toaster/util/logging.rb +19 -0
- data/lib/toaster/util/lxc.rb +383 -0
- data/lib/toaster/util/mem_dump.rb +38 -0
- data/lib/toaster/util/proxy.rb +23 -0
- data/lib/toaster/util/timestamp.rb +131 -0
- data/lib/toaster/util/util.rb +437 -0
- data/lib/toaster/web_ui.rb +7 -0
- data/webapp/Gemfile +46 -0
- data/webapp/Gemfile.lock +237 -0
- data/webapp/Rakefile +6 -0
- data/webapp/app/assets/fonts/font.woff +0 -0
- data/webapp/app/assets/images/final_state.gif +0 -0
- data/webapp/app/assets/images/initial_state.gif +0 -0
- data/webapp/app/assets/images/loading.gif +0 -0
- data/webapp/app/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/webapp/app/assets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/webapp/app/assets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/webapp/app/assets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/webapp/app/assets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/webapp/app/assets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/webapp/app/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/webapp/app/assets/images/ui-icons_222222_256x240.png +0 -0
- data/webapp/app/assets/javascripts/analysis.js.coffee +3 -0
- data/webapp/app/assets/javascripts/application.js +16 -0
- data/webapp/app/assets/javascripts/execs.js.coffee +3 -0
- data/webapp/app/assets/javascripts/graph.js +441 -0
- data/webapp/app/assets/javascripts/jquery-1.7.2.js +9404 -0
- data/webapp/app/assets/javascripts/jquery-ui-1.8.22.js +11529 -0
- data/webapp/app/assets/javascripts/jquery.cookie.js +96 -0
- data/webapp/app/assets/javascripts/jquery.hotkeys.js +99 -0
- data/webapp/app/assets/javascripts/jquery.jstree.js +4551 -0
- data/webapp/app/assets/javascripts/jsPlumb/jquery.jsPlumb-1.3.14-all-min.js +1 -0
- data/webapp/app/assets/javascripts/jstree.util.js +53 -0
- data/webapp/app/assets/javascripts/scripts.js.coffee +3 -0
- data/webapp/app/assets/javascripts/settings.js.coffee +3 -0
- data/webapp/app/assets/javascripts/test.js.coffee +3 -0
- data/webapp/app/assets/javascripts/util.js.coffee +3 -0
- data/webapp/app/assets/stylesheets/analysis.css.scss +3 -0
- data/webapp/app/assets/stylesheets/application.css +49 -0
- data/webapp/app/assets/stylesheets/execs.css.scss +3 -0
- data/webapp/app/assets/stylesheets/graph.css +159 -0
- data/webapp/app/assets/stylesheets/jquery-ui-1.8.6.custom.css +572 -0
- data/webapp/app/assets/stylesheets/layout.css +151 -0
- data/webapp/app/assets/stylesheets/menu.css +186 -0
- data/webapp/app/assets/stylesheets/reset.css +41 -0
- data/webapp/app/assets/stylesheets/scripts.css.scss +3 -0
- data/webapp/app/assets/stylesheets/settings.css.scss +3 -0
- data/webapp/app/assets/stylesheets/test.css.scss +3 -0
- data/webapp/app/assets/stylesheets/util.css.scss +3 -0
- data/webapp/app/assets/stylesheets/websymbols/websymbols-regular-webfont.eot +0 -0
- data/webapp/app/assets/stylesheets/websymbols/websymbols-regular-webfont.svg +1 -0
- data/webapp/app/assets/stylesheets/websymbols/websymbols-regular-webfont.ttf +0 -0
- data/webapp/app/assets/stylesheets/websymbols/websymbols-regular-webfont.woff +0 -0
- data/webapp/app/controllers/analysis_controller.rb +7 -0
- data/webapp/app/controllers/application_controller.rb +14 -0
- data/webapp/app/controllers/base_controller.rb +91 -0
- data/webapp/app/controllers/execs_controller.rb +59 -0
- data/webapp/app/controllers/graph_controller.rb +17 -0
- data/webapp/app/controllers/scripts_controller.rb +166 -0
- data/webapp/app/controllers/settings_controller.rb +10 -0
- data/webapp/app/controllers/test_controller.rb +127 -0
- data/webapp/app/controllers/util_controller.rb +6 -0
- data/webapp/app/helpers/analysis_helper.rb +2 -0
- data/webapp/app/helpers/application_helper.rb +2 -0
- data/webapp/app/helpers/automations_helper.rb +2 -0
- data/webapp/app/helpers/execs_helper.rb +2 -0
- data/webapp/app/helpers/scripts_helper.rb +2 -0
- data/webapp/app/helpers/settings_helper.rb +2 -0
- data/webapp/app/helpers/test_helper.rb +2 -0
- data/webapp/app/helpers/util_helper.rb +2 -0
- data/webapp/app/views/analysis/convergence.html.erb +156 -0
- data/webapp/app/views/analysis/idempotence.html.erb +2 -0
- data/webapp/app/views/execs/automation_runs.html.erb +98 -0
- data/webapp/app/views/execs/task_executions.html.erb +154 -0
- data/webapp/app/views/graph/graph_frame.html +101 -0
- data/webapp/app/views/layouts/application.html.erb +114 -0
- data/webapp/app/views/scripts/edit.html.erb +58 -0
- data/webapp/app/views/scripts/graph.html.erb +75 -0
- data/webapp/app/views/scripts/import_chef.html.erb +104 -0
- data/webapp/app/views/scripts/scripts.html.erb +116 -0
- data/webapp/app/views/scripts/tasks.html.erb +139 -0
- data/webapp/app/views/settings/containers.html.erb +161 -0
- data/webapp/app/views/settings/index.html.erb +51 -0
- data/webapp/app/views/test/cases.html.erb +2 -0
- data/webapp/app/views/test/gen.html.erb +229 -0
- data/webapp/app/views/test/suites.html.erb +205 -0
- data/webapp/app/views/util/chef.html.erb +53 -0
- data/webapp/bin/bundle +3 -0
- data/webapp/bin/rails +4 -0
- data/webapp/bin/rake +4 -0
- data/webapp/config/application.rb +28 -0
- data/webapp/config/boot.rb +18 -0
- data/webapp/config/database.yml +42 -0
- data/webapp/config/environment.rb +5 -0
- data/webapp/config/environments/development.rb +35 -0
- data/webapp/config/environments/production.rb +80 -0
- data/webapp/config/environments/test.rb +36 -0
- data/webapp/config/initializers/backtrace_silencers.rb +7 -0
- data/webapp/config/initializers/devise.rb +256 -0
- data/webapp/config/initializers/filter_parameter_logging.rb +4 -0
- data/webapp/config/initializers/inflections.rb +16 -0
- data/webapp/config/initializers/mime_types.rb +5 -0
- data/webapp/config/initializers/patches.rb +13 -0
- data/webapp/config/initializers/secret_token.rb +12 -0
- data/webapp/config/initializers/session_store.rb +6 -0
- data/webapp/config/initializers/wrap_parameters.rb +16 -0
- data/webapp/config/locales/devise.en.yml +59 -0
- data/webapp/config/locales/en.yml +23 -0
- data/webapp/config/routes.rb +113 -0
- data/webapp/config.ru +4 -0
- data/webapp/db/development.sqlite3 +0 -0
- data/webapp/db/migrate/20140624002037_devise_create_users.rb +42 -0
- data/webapp/db/migrate/20140628002058_create_all_tables.rb +159 -0
- data/webapp/db/schema.rb +162 -0
- data/webapp/db/seeds.rb +7 -0
- data/webapp/log/development.log +167823 -0
- data/webapp/public/404.html +58 -0
- data/webapp/public/422.html +58 -0
- data/webapp/public/500.html +57 -0
- data/webapp/public/favicon.ico +0 -0
- data/webapp/public/robots.txt +5 -0
- data/webapp/test/controllers/analysis_controller_test.rb +14 -0
- data/webapp/test/controllers/automations_controller_test.rb +49 -0
- data/webapp/test/controllers/execs_controller_test.rb +9 -0
- data/webapp/test/controllers/executions_controller_test.rb +9 -0
- data/webapp/test/controllers/runs_controller_test.rb +7 -0
- data/webapp/test/controllers/scripts_controller_test.rb +9 -0
- data/webapp/test/controllers/settings_controller_test.rb +9 -0
- data/webapp/test/controllers/test_controller_test.rb +14 -0
- data/webapp/test/controllers/util_controller_test.rb +9 -0
- data/webapp/test/fixtures/users.yml +11 -0
- data/webapp/test/helpers/analysis_helper_test.rb +4 -0
- data/webapp/test/helpers/automations_helper_test.rb +4 -0
- data/webapp/test/helpers/execs_helper_test.rb +4 -0
- data/webapp/test/helpers/executions_helper_test.rb +4 -0
- data/webapp/test/helpers/runs_helper_test.rb +4 -0
- data/webapp/test/helpers/scripts_helper_test.rb +4 -0
- data/webapp/test/helpers/settings_helper_test.rb +4 -0
- data/webapp/test/helpers/test_helper_test.rb +4 -0
- data/webapp/test/helpers/util_helper_test.rb +4 -0
- data/webapp/test/models/user_test.rb +7 -0
- data/webapp/test/test_helper.rb +15 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/analysis.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/automations.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/execs.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/executions.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/scripts.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/settings.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/test.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sass/1330a34c6b24ed44c0f194c03246f627289a985a/util.css.scssc +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/06a1cdb3d5472dd126cffc18f548c342 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/0dc0562647e703ca0535da3b9fcad796 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/113f1c71cb0f2a786729477989122982 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/151a1c6b128721d8923ba0c380a2af17 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/1722fb8a6daad566c8a6d5ef31969459 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/1a05555c46560c6b246aa0a996679bc6 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/1cb7fb6aa8bd1c2b7df8f7c52442e345 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/1d76f803b0a83adc5ea7e7c848657967 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/200152f95fc464d69c425ed8fdc2fbcc +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/2049c8927ebd046c8a3291f81041d5f1 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/207907100aabd08a6767e39a95b364e3 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/249e2d4db815922fc72419c4a1407caf +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/3034e4c334b1ebed9433e33050555f18 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/316c88d859cc3666044e51b1dd89e872 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/347f43d816178c8ba11a28a771696924 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/36ab92a3b8d527ed1eff0944b5f1263d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/3893b852ff196f05ff6ca8e38bb2237f +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/3c358bd5fa32d151c7aa44971dd9b96f +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/3ce88fad85146e0bed233f5419c24d29 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/3dabcb7c89677292e1e019a9bac446e5 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/4116fac01e6d379ede37af725a592477 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/42628e032b8f0b16a5ba01a1fcc7b6d7 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/437b258a98e8fe2c87fa8e24b7ce9abf +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/43e98ed206f05738ae305e7e1b09a840 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/468da8933ba442b88b2f4b0e40c2ac30 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/48ef3fa68e9084c7cfa84e525decc318 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/4b68dcc030691297629a7156361018dc +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/50368b1bd77c9130d821cbad89ab83ac +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/511a980807b8d16fc3fb839991041865 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/516a0973874a73d0d15feec9448f7466 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/569e21b0ca1a230c7880f8d7a8b1febf +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/5b5543d2ed5bed100f1739fc12ebf2c5 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/5c10dbffb918651dc0498579ba9a6853 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/5c366b5370316b3e9c03d1a58cb5eb44 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/5fcb9466e0d5cb0e31b35957fe2d3901 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/61da396fb86c5ecd844a2d83ac759b4b +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/624ba87170059068845a4651b3cd2c7c +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/6391f61b6121feda70da6d0a22520fdd +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/653a981829c12a52bd57b7918168a148 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/66479793d9e5683d9f7fa67522d1962d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/69c589bd224ee0df5ab02e4568e0ab39 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/6dd7c564897b7e66eecbb180baeef2c6 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/6e2b92a4e6966cb78e63207bc7888391 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/70adb410f59a0edc5aea8c2b2ef8a441 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/72cbfd5bf33945bcce154f7a4feaf04d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/740ee9d355ada8cf5e9beb620f2cd5cc +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/74770a22b5d1b0b3bc3527da83706f96 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/759bf97655af50852816720db7b59fcb +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/76e9c19246c684413a02af695fa2b0bc +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/7728beeace48ca12e336d2bce0158871 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/77f49730c7b689f75a2e174fbd3ace2a +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/78021a57030fd36cf82699aad9910b26 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/796b349b06da691fe5f069f9e3947fcb +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/79e7505c70697cc7d34d4a8351c3b840 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/7b2b7d9034fc7b77daf5da1436667e6f +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/7c2ea2ca2cdd89b062bf23f44e8f599c +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/7ea112af55e6df12cdff377052b71420 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/7f27632588dd316836b009a621c0176c +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/7fcef9f644290dea8d0e4bf13f6bb8e9 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/81c6bf67419a29257ed79f442c24907d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/83656ce9260eb473c1654420e0180167 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/83e8bdddefc2dce069b56e6650135397 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/880c796f41e5d67ae68ed239acfc91e3 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/8c1c39dd537d2c9990fe9c70a5646b06 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/8d763042da5254015767385ce324b348 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/91e1ccbf65ff4d9b0f42b1159796bcf2 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/92cdfac7698b6bb68983cf317c1cedef +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/94cab8cbc120e152ce4c444492a3fc1d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/96b918c3c041b6a089c8adc870fa3aaa +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/97cbe306627b432ab3bfb52416690d1d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/98da83d396c0c00eb03937ecbc2e6bfa +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/9db04db20ec9c4a0f84ed01caa5e6e2b +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/9dc1c251f50c828fae95d6107619c53e +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/9e91711ab34bbf89ad1cfb4351027d36 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/9f587881f98b328b656e6456178418b5 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/9fc981560caba00621bb95d0974ad076 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/9fd4385f8fda99f3ddd3f133a89231d1 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/a32ab71649e3db15eca95bcc3a7588da +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/a497c976969bdbb1f69875358d39d3b5 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/b06058d455770c1d9db6b6670bc4bf4d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/b3da405f1e68470ad6146a1322f2438c +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/b4ba5853663f6721d15942ce08dd76bf +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/b6f1534bcdbff92a16c85487f363235a +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/b9c57b9750f8af3551b1a5d9e27f0a92 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/bb5be6a0ee889a15214e2442aee8c6e1 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/bc80a81b2d67b5ad40f3c7a2bb6e6f22 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/bfaba27d5ce71d292f453659b0755511 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/bfac6cd2984fbd5e0d762389e3c37164 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/c17bec9e3b5db6d8385c3d6eb362e628 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/c1a9eceddc0a1e41eb2992e9204f71e6 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/c50cd87be040044504b5c3fde1047e24 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/c5907cfd07b24ad19b8c80e8af618a57 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/c8da5594caf845a183dd1c6cd45c5433 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/cbc6968ed49fa14db439a64dd0a46abc +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/cedf710ee090647b81c08675583eca62 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/cf1e3cebfad43293c3c470a5e437ebc9 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/d5a14f86bb4b422fdd8eb4722d966c9a +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/d66b9cdd3230f9e5354e495e17097c49 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/dfa0ed87d851222fe58ada385e3f037d +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/e1aa402390382db4d97b27cb094485fa +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/e4f1db35ef9d9fbbf53252a44e381eb8 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/e57eb6c1ad51fd8c13afc0e719a259b5 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/e7c37b542e914e392ec326190cea1aa2 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/e923d7e19c216d4a924831f3896e007a +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/e96a414a621483bbc89e73f11be5e7b4 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/eafcfc3d2561c18743c1b32f0f710c68 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/ecdd630f5466d45a2afa7515aaa5fc3b +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/ee60a0a35d60cff425373970547694bd +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/eee2c36b75709b0c3797c2a151fdd5d3 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f104b66c0f89b453d0c8c73980fbab18 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f26d1bc86590415685e9836ad75d1774 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f4081e868eb565527099dba2c9d8c4de +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f813030b97e30415ad276bbd1f7e1fb4 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f8e3e28bc9640c25da58aea46c3ac4b3 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f9169d0a8b70eaf95de52b3c6ad51105 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/f939450f7a481e3fbeb158b81b39c624 +0 -0
- data/webapp/tmp/cache/assets/development/sprockets/fce73296b8298ac4c74b3e95cde4dfdb +0 -0
- metadata +941 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import url('reset.css');
|
|
2
|
+
/* General Style */
|
|
3
|
+
body{
|
|
4
|
+
background: white;
|
|
5
|
+
color: #333;
|
|
6
|
+
font-family: 'Terminal Dosis', Arial, sans-serif;
|
|
7
|
+
font-size: 13px;
|
|
8
|
+
}
|
|
9
|
+
a{
|
|
10
|
+
color: #227788;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
}
|
|
13
|
+
.clr{
|
|
14
|
+
clear: both;
|
|
15
|
+
}
|
|
16
|
+
.content{
|
|
17
|
+
position:relative;
|
|
18
|
+
}
|
|
19
|
+
h1 {
|
|
20
|
+
color: #666;
|
|
21
|
+
margin-bottom: 10px;
|
|
22
|
+
margin-top: 10px;
|
|
23
|
+
margin-left: 0px;
|
|
24
|
+
text-shadow:1px 1px 1px rgba(255,255,255,0.9);
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
}
|
|
27
|
+
/* Menu Style */
|
|
28
|
+
.ca-menu h2, .ca-menu h3 {
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
}
|
|
31
|
+
.ca-menu {
|
|
32
|
+
z-index: 200;
|
|
33
|
+
}
|
|
34
|
+
/* Header Style */
|
|
35
|
+
.header {
|
|
36
|
+
background: black;
|
|
37
|
+
width: 100%;
|
|
38
|
+
color:#fff;
|
|
39
|
+
}
|
|
40
|
+
.header h1, .header h2 {
|
|
41
|
+
margin:0px;
|
|
42
|
+
font-size:32px;
|
|
43
|
+
line-height: 50px;
|
|
44
|
+
text-align:center;
|
|
45
|
+
font-weight:normal;
|
|
46
|
+
color: white;
|
|
47
|
+
}
|
|
48
|
+
.header h1 {
|
|
49
|
+
text-shadow:1px 1px 1px rgba(200,200,200,0.9);
|
|
50
|
+
font-weight: bold;
|
|
51
|
+
}
|
|
52
|
+
.header h2 {
|
|
53
|
+
font-size: 20px;
|
|
54
|
+
padding-bottom: 10px;
|
|
55
|
+
margin-top: -10px;
|
|
56
|
+
font-weight:normal;
|
|
57
|
+
}
|
|
58
|
+
.userinfo {
|
|
59
|
+
float: right;
|
|
60
|
+
position: absolute;
|
|
61
|
+
right: 20px;
|
|
62
|
+
top: 0px;
|
|
63
|
+
color: white;
|
|
64
|
+
//line-height: 40px;
|
|
65
|
+
}
|
|
66
|
+
.userinfo div {
|
|
67
|
+
margin-top: 5px;
|
|
68
|
+
}
|
|
69
|
+
/* Content Style*/
|
|
70
|
+
.container {
|
|
71
|
+
-webkit-transform: translateZ(0);
|
|
72
|
+
-webkit-transform: translate3d(0,0,0);
|
|
73
|
+
}
|
|
74
|
+
.pages, .content, .panel {
|
|
75
|
+
z-index: 0;
|
|
76
|
+
min-width: 400px;
|
|
77
|
+
}
|
|
78
|
+
.content, .ca-menu {
|
|
79
|
+
float: left;
|
|
80
|
+
}
|
|
81
|
+
.content {
|
|
82
|
+
opacity: 0.9;
|
|
83
|
+
padding: 20px;
|
|
84
|
+
margin-left: 0px;
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
}
|
|
87
|
+
.content ul {
|
|
88
|
+
margin-left: 20px;
|
|
89
|
+
}
|
|
90
|
+
.content p {
|
|
91
|
+
margin-top: 5px;
|
|
92
|
+
margin-bottom: 10px;
|
|
93
|
+
}
|
|
94
|
+
.content h1, .content h2, .content h3, .content h4 {
|
|
95
|
+
margin-top: 10px;
|
|
96
|
+
margin-bottom: 10px;
|
|
97
|
+
}
|
|
98
|
+
.panel,
|
|
99
|
+
.pages > :target ~ :last-child {
|
|
100
|
+
position: absolute;
|
|
101
|
+
opacity: 0.01;
|
|
102
|
+
-webkit-transform: translateZ(0);
|
|
103
|
+
-webkit-transform: translate3d(0,0,0);
|
|
104
|
+
left: -102%;
|
|
105
|
+
-webkit-transition: opacity 200ms ease-in;
|
|
106
|
+
-moz-transition: opacity 200ms ease-in;
|
|
107
|
+
-o-transition: opacity 200ms ease-in;
|
|
108
|
+
-ms-transition: opacity 200ms ease-in;
|
|
109
|
+
transition: opacity 200ms ease-in;
|
|
110
|
+
}
|
|
111
|
+
.panel:target, .pages > :last-child {
|
|
112
|
+
position: absolute;
|
|
113
|
+
left: 300px;
|
|
114
|
+
opacity: 1;
|
|
115
|
+
-webkit-transition: opacity 200ms ease-in;
|
|
116
|
+
-moz-transition: opacity 200ms ease-in;
|
|
117
|
+
-o-transition: opacity 200ms ease-in;
|
|
118
|
+
-ms-transition: opacity 200ms ease-in;
|
|
119
|
+
transition: opacity 200ms ease-in;
|
|
120
|
+
}
|
|
121
|
+
pre code {
|
|
122
|
+
background: #eee;
|
|
123
|
+
display: block;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
padding: 7px;
|
|
126
|
+
border: 1px solid #ccc;
|
|
127
|
+
margin: 10px;
|
|
128
|
+
}
|
|
129
|
+
/* Fork Banner */
|
|
130
|
+
.forkBanner{
|
|
131
|
+
z-index: 9999;
|
|
132
|
+
position: fixed;
|
|
133
|
+
top: 0px;
|
|
134
|
+
right: 0px;
|
|
135
|
+
-webkit-animation: slideOut 0.5s ease-in-out 0.3s backwards;
|
|
136
|
+
-moz-animation: slideOut 0.5s ease-in-out 0.3s backwards;
|
|
137
|
+
-o-animation: slideOut 0.5s ease-in-out 0.3s backwards;
|
|
138
|
+
-ms-animation: slideOut 0.5s ease-in-out 0.3s backwards;
|
|
139
|
+
animation: slideOut 0.5s ease-in-out 0.3s backwards;
|
|
140
|
+
}
|
|
141
|
+
.forkBanner a{
|
|
142
|
+
opacity: 0.6;
|
|
143
|
+
}
|
|
144
|
+
.forkBanner a:hover{
|
|
145
|
+
opacity: 0.9;
|
|
146
|
+
}
|
|
147
|
+
/* Footer Style */
|
|
148
|
+
.footer {
|
|
149
|
+
float: left; clear: both;
|
|
150
|
+
width: 350; padding: 7px;
|
|
151
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'WebSymbolsRegular';
|
|
3
|
+
src: url('websymbols/websymbols-regular-webfont.eot');
|
|
4
|
+
src: url('websymbols/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'),
|
|
5
|
+
url('websymbols/websymbols-regular-webfont.woff') format('woff'),
|
|
6
|
+
url('websymbols/websymbols-regular-webfont.ttf') format('truetype'),
|
|
7
|
+
url('websymbols/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
|
|
8
|
+
font-weight: normal;
|
|
9
|
+
font-style: normal;
|
|
10
|
+
}
|
|
11
|
+
.ca-menu{
|
|
12
|
+
padding:0;
|
|
13
|
+
width: 210px;
|
|
14
|
+
}
|
|
15
|
+
.ca-menu li{
|
|
16
|
+
min-height: 60px;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
position: relative;
|
|
19
|
+
display: block;
|
|
20
|
+
background: #f1f1f1;
|
|
21
|
+
opacity: 0.6;
|
|
22
|
+
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
|
|
23
|
+
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
|
|
24
|
+
box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
|
|
25
|
+
margin-bottom: 4px;
|
|
26
|
+
-webkit-transition: all 300ms linear;
|
|
27
|
+
-moz-transition: all 300ms linear;
|
|
28
|
+
-o-transition: all 300ms linear;
|
|
29
|
+
-ms-transition: all 300ms linear;
|
|
30
|
+
transition: all 300ms linear;
|
|
31
|
+
}
|
|
32
|
+
.ca-menu li.active ul {
|
|
33
|
+
margin-top: 60px;
|
|
34
|
+
}
|
|
35
|
+
.ca-menu li.active ul li {
|
|
36
|
+
min-height: 20px;
|
|
37
|
+
height: 25px;
|
|
38
|
+
line-height: 25px;
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
-webkit-box-shadow: 1px -1px 2px rgba(0,0,0,0.2);
|
|
41
|
+
-moz-box-shadow: 1px -1px 2px rgba(0,0,0,0.2);
|
|
42
|
+
box-shadow: 1px -1px 2px rgba(0,0,0,0.2);
|
|
43
|
+
}
|
|
44
|
+
.ca-menu li.active ul li a {
|
|
45
|
+
padding-left: 50px;
|
|
46
|
+
}
|
|
47
|
+
.ca-menu li:last-child{
|
|
48
|
+
margin-bottom: 0px;
|
|
49
|
+
}
|
|
50
|
+
.ca-menu li a{
|
|
51
|
+
text-align: left;
|
|
52
|
+
width: 100%;
|
|
53
|
+
/*height: 100%;*/
|
|
54
|
+
display: block;
|
|
55
|
+
color: #333;
|
|
56
|
+
position: relative;
|
|
57
|
+
}
|
|
58
|
+
.ca-menu li.inactive ul {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
.ca-menu li.active ul {
|
|
62
|
+
display: all;
|
|
63
|
+
}
|
|
64
|
+
.ca-icon{
|
|
65
|
+
font-family: 'WebSymbolsRegular', cursive;
|
|
66
|
+
font-size: 20px;
|
|
67
|
+
text-shadow: 0px 0px 1px #333;
|
|
68
|
+
line-height: 60px;
|
|
69
|
+
position: absolute;
|
|
70
|
+
width: 60px;
|
|
71
|
+
left: 0px;
|
|
72
|
+
text-align: center;
|
|
73
|
+
-webkit-transition: all 300ms linear;
|
|
74
|
+
-moz-transition: all 300ms linear;
|
|
75
|
+
-o-transition: all 300ms linear;
|
|
76
|
+
-ms-transition: all 300ms linear;
|
|
77
|
+
transition: all 300ms linear;
|
|
78
|
+
}
|
|
79
|
+
.ca-content{
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 60px;
|
|
82
|
+
width: 370px;
|
|
83
|
+
height: 50px;
|
|
84
|
+
top: 10px;
|
|
85
|
+
}
|
|
86
|
+
.ca-main{
|
|
87
|
+
font-size: 20px;
|
|
88
|
+
-webkit-transition: all 300ms linear;
|
|
89
|
+
-moz-transition: all 300ms linear;
|
|
90
|
+
-o-transition: all 300ms linear;
|
|
91
|
+
-ms-transition: all 300ms linear;
|
|
92
|
+
transition: all 300ms linear;
|
|
93
|
+
}
|
|
94
|
+
.ca-sub{
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
color: #666;
|
|
97
|
+
-webkit-transition: all 300ms linear;
|
|
98
|
+
-moz-transition: all 300ms linear;
|
|
99
|
+
-o-transition: all 300ms linear;
|
|
100
|
+
-ms-transition: all 300ms linear;
|
|
101
|
+
transition: all 300ms linear;
|
|
102
|
+
}
|
|
103
|
+
.ca-menu li:hover, .ca-menu li.active {
|
|
104
|
+
background: #e1f0fa;
|
|
105
|
+
opacity: 0.9;
|
|
106
|
+
}
|
|
107
|
+
.ca-menu li:hover .ca-icon, .ca-menu li.active .ca-icon {
|
|
108
|
+
font-size: 30px;
|
|
109
|
+
color: #259add;
|
|
110
|
+
opacity: 0.8;
|
|
111
|
+
text-shadow: 0px 0px 13px #fff;
|
|
112
|
+
}
|
|
113
|
+
.ca-menu li:hover .ca-main, .ca-menu li.active .ca-main {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
color:#2676ac;
|
|
116
|
+
-webkit-animation: moveFromTop 300ms ease-in-out;
|
|
117
|
+
-moz-animation: moveFromTop 300ms ease-in-out;
|
|
118
|
+
-ms-animation: moveFromTop 300ms ease-in-out;
|
|
119
|
+
}
|
|
120
|
+
.ca-menu li:hover .ca-sub, .ca-menu li.active .ca-sub {
|
|
121
|
+
opacity: 1;
|
|
122
|
+
-webkit-animation: moveFromBottom 300ms ease-in-out;
|
|
123
|
+
-moz-animation: moveFromBottom 300ms ease-in-out;
|
|
124
|
+
-ms-animation: moveFromBottom 300ms ease-in-out;
|
|
125
|
+
}
|
|
126
|
+
@-webkit-keyframes moveFromBottom {
|
|
127
|
+
from {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
-webkit-transform: translateY(200%);
|
|
130
|
+
}
|
|
131
|
+
to {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
-webkit-transform: translateY(0%);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
@-moz-keyframes moveFromBottom {
|
|
137
|
+
from {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
-moz-transform: translateY(200%);
|
|
140
|
+
}
|
|
141
|
+
to {
|
|
142
|
+
opacity: 1;
|
|
143
|
+
-moz-transform: translateY(0%);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
@-ms-keyframes moveFromBottom {
|
|
147
|
+
from {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
-ms-transform: translateY(200%);
|
|
150
|
+
}
|
|
151
|
+
to {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
-ms-transform: translateY(0%);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@-webkit-keyframes moveFromTop {
|
|
158
|
+
from {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
-webkit-transform: translateY(-200%);
|
|
161
|
+
}
|
|
162
|
+
to {
|
|
163
|
+
opacity: 1;
|
|
164
|
+
-webkit-transform: translateY(0%);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
@-moz-keyframes moveFromTop {
|
|
168
|
+
from {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
-moz-transform: translateY(-200%);
|
|
171
|
+
}
|
|
172
|
+
to {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
-moz-transform: translateY(0%);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@-ms-keyframes moveFromTop {
|
|
178
|
+
from {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
-ms-transform: translateY(-200%);
|
|
181
|
+
}
|
|
182
|
+
to {
|
|
183
|
+
opacity: 1;
|
|
184
|
+
-ms-transform: translateY(0%);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* CSS reset */
|
|
2
|
+
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
|
|
3
|
+
margin:0;
|
|
4
|
+
padding:0;
|
|
5
|
+
}
|
|
6
|
+
html,body {
|
|
7
|
+
margin:0;
|
|
8
|
+
padding:0;
|
|
9
|
+
}
|
|
10
|
+
table {
|
|
11
|
+
border-collapse:collapse;
|
|
12
|
+
border-spacing:0;
|
|
13
|
+
}
|
|
14
|
+
fieldset,img {
|
|
15
|
+
border:0;
|
|
16
|
+
}
|
|
17
|
+
input{
|
|
18
|
+
border:1px solid #b0b0b0;
|
|
19
|
+
padding:3px 5px 4px;
|
|
20
|
+
color:#979797;
|
|
21
|
+
width:190px;
|
|
22
|
+
}
|
|
23
|
+
address,caption,cite,code,dfn,th,var {
|
|
24
|
+
font-style:normal;
|
|
25
|
+
font-weight:normal;
|
|
26
|
+
}
|
|
27
|
+
ol,ul {
|
|
28
|
+
/*list-style:none;*/
|
|
29
|
+
}
|
|
30
|
+
caption,th {
|
|
31
|
+
text-align:left;
|
|
32
|
+
}
|
|
33
|
+
h1,h2,h3,h4,h5,h6 {
|
|
34
|
+
/* font-size:100%;
|
|
35
|
+
font-weight:normal; */
|
|
36
|
+
}
|
|
37
|
+
q:before,q:after {
|
|
38
|
+
content:'';
|
|
39
|
+
}
|
|
40
|
+
abbr,acronym { border:0;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require "base_controller.rb"
|
|
2
|
+
|
|
3
|
+
class ApplicationController < BaseController
|
|
4
|
+
# Prevent CSRF attacks by raising an exception.
|
|
5
|
+
# For APIs, you may want to use :null_session instead.
|
|
6
|
+
protect_from_forgery :with => :exception
|
|
7
|
+
|
|
8
|
+
# use authentication based on "devise"
|
|
9
|
+
before_filter :authenticate_user!
|
|
10
|
+
|
|
11
|
+
# global requires
|
|
12
|
+
$LOAD_PATH << File.join(File.dirname(__FILE__), "../../../../../lib")
|
|
13
|
+
|
|
14
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
class BaseController < ActionController::Base
|
|
2
|
+
|
|
3
|
+
def l(hash=nil)
|
|
4
|
+
$session = session
|
|
5
|
+
return get_link(hash)
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def get_link(hash=nil)
|
|
9
|
+
hash1 = get_query_params()
|
|
10
|
+
hash1['t'] = $current_page
|
|
11
|
+
hash1.delete('p')
|
|
12
|
+
hash = {} if !hash
|
|
13
|
+
hash = hash1.merge(hash)
|
|
14
|
+
if !hash['sessionID']
|
|
15
|
+
hash['sessionID'] = $session['session_id']
|
|
16
|
+
end
|
|
17
|
+
link = "?"
|
|
18
|
+
if hash.include?("p")
|
|
19
|
+
link = "#{hash['p']}?"
|
|
20
|
+
hash.delete('p')
|
|
21
|
+
end
|
|
22
|
+
count = 0
|
|
23
|
+
hash.each do |k,v|
|
|
24
|
+
if k.to_s.strip != "" && v.to_s.strip != ""
|
|
25
|
+
link += "&" if (count+=1) > 1
|
|
26
|
+
link += "#{k}=#{v}"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
return link
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
$user_params = {}
|
|
33
|
+
def param(name, default="")
|
|
34
|
+
return $user_params[name] if $user_params[name]
|
|
35
|
+
return $cgi[name] if $cgi && $cgi[name] && $cgi[name].strip != ""
|
|
36
|
+
p = get_query_params()[name]
|
|
37
|
+
return p if p && p != ""
|
|
38
|
+
return default
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def get_query_params(hash=nil)
|
|
42
|
+
hash = {} if !hash
|
|
43
|
+
query_values = params
|
|
44
|
+
query_values.each do |k,v|
|
|
45
|
+
v = v.kind_of?(Array) ? v[0] : v.to_s
|
|
46
|
+
if !hash.include?(k)
|
|
47
|
+
hash[k] = v
|
|
48
|
+
end
|
|
49
|
+
if $user_params.include?(k)
|
|
50
|
+
hash[k] = $user_params[k]
|
|
51
|
+
if $user_params[k].nil?
|
|
52
|
+
hash.delete(k)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
return hash
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def set_param(name, value)
|
|
60
|
+
$user_params[name] = value
|
|
61
|
+
if value.nil?
|
|
62
|
+
$user_params.delete(name)
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def format_minutes(seconds)
|
|
67
|
+
return to_minutes(seconds)
|
|
68
|
+
end
|
|
69
|
+
def to_minutes(seconds)
|
|
70
|
+
return "n/a" if seconds.nil? || seconds.to_f.nan? || (seconds < 0)
|
|
71
|
+
m = (seconds.to_f/60.0).floor
|
|
72
|
+
s = (seconds - (m * 60.0)).round
|
|
73
|
+
return "%02d:%02d" % [ m, s ]
|
|
74
|
+
end
|
|
75
|
+
def format_date(secs)
|
|
76
|
+
return format_time(secs)
|
|
77
|
+
end
|
|
78
|
+
def format_time(secs)
|
|
79
|
+
if !secs || "#{secs}".empty?
|
|
80
|
+
return "n/a"
|
|
81
|
+
end
|
|
82
|
+
secs = secs.to_s.to_i
|
|
83
|
+
Time.at(secs).strftime("%Y-%m-%d %H:%M:%S")
|
|
84
|
+
end
|
|
85
|
+
def format_float(f, digits_after_comma=2)
|
|
86
|
+
return "%.#{digits_after_comma}f" % f
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
helper_method :l, :lk, :set_param, :param, :current_user,
|
|
90
|
+
:format_time, :to_minutes, :format_float
|
|
91
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
require "toaster/model/task"
|
|
2
|
+
|
|
3
|
+
class ExecsController < ApplicationController
|
|
4
|
+
|
|
5
|
+
def automation_runs
|
|
6
|
+
auto = cur_auto
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def task_executions
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def list
|
|
13
|
+
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def cur_auto()
|
|
18
|
+
ScriptsController.cur_auto(session, params)
|
|
19
|
+
end
|
|
20
|
+
def cur_runs()
|
|
21
|
+
a = cur_auto
|
|
22
|
+
if a
|
|
23
|
+
return cur_auto.automation_runs
|
|
24
|
+
else
|
|
25
|
+
return AutomationRun.find()
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def cur_run()
|
|
30
|
+
ExecsController.cur_run(session, params)
|
|
31
|
+
end
|
|
32
|
+
def self.cur_run(session, params)
|
|
33
|
+
a = ScriptsController.cur_auto(session, params)
|
|
34
|
+
return nil if !a
|
|
35
|
+
if params[:run_id]
|
|
36
|
+
a.automation_runs.each do |r|
|
|
37
|
+
if "#{r.id}" == params[:run_id]
|
|
38
|
+
return r
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
return nil
|
|
43
|
+
end
|
|
44
|
+
def cur_task()
|
|
45
|
+
ExecsController.cur_task(session, params)
|
|
46
|
+
end
|
|
47
|
+
def self.cur_task(session, params)
|
|
48
|
+
if params[:task_id]
|
|
49
|
+
return Task.find(params[:task_id])
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
def cur_exec()
|
|
53
|
+
if params[:task_exec_id]
|
|
54
|
+
return TaskExecution.find(params[:task_exec_id])
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
helper_method :cur_auto, :cur_runs, :cur_run, :cur_task, :cur_exec
|
|
59
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
class GraphController < BaseController
|
|
2
|
+
# Prevent CSRF attacks by raising an exception.
|
|
3
|
+
# For APIs, you may want to use :null_session instead.
|
|
4
|
+
protect_from_forgery :with => :exception
|
|
5
|
+
|
|
6
|
+
# use authentication based on "devise"
|
|
7
|
+
before_filter :authenticate_user!
|
|
8
|
+
|
|
9
|
+
# global requires
|
|
10
|
+
$LOAD_PATH << File.join(File.dirname(__FILE__), "../../../../../lib")
|
|
11
|
+
|
|
12
|
+
def cur_auto()
|
|
13
|
+
ScriptsController.cur_auto(session, params)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
helper_method :cur_auto
|
|
17
|
+
end
|