Skip to content
ngiger edited this page Mar 17, 2013 · 10 revisions

Eine kleine auf sinatra basierend Applikation um Wartungarbeiten für Elexis einfach auszuführen. Einen Schnappschuss der Einstiegssseite findet man hier.

Dokumentation

Siehe Screenshots.
Nach dem Ausführen einer Batch-Datei muss man jeils die Seite neu laden, um nach dem Ende des Scripts den Status einsehen zu können.

Setup

  • Install Ruby 2.0.0
  • git clone https://github.com/elexis/elexis-cockpit && cd elexis-cockpit
  • gem install bundler && bundle install

Now you should be ready to start Elexis-Cockpit using ruby elexis-cockpit.rb.
Navigate with your browser to localhost:9393 and you should see the main window.

  • rake mockscripts creates scripts in the directory mock_scripts. Most scripts just return immediately 0, the ones containing load in their name return 1 after 3 seconds. Also creates a mock_config.yaml which points to these mock-scripts. You may force elexis-cockpit.rb to use it by setting an environment variable, e.g. export COCKIT_CONFIG=mock_config.yaml.

Tests

rake screenshots_done runs a watir based script to create screenshots in wiki/images. You may set the environment variable COCKCPIT_BROWSER to run tests with another browser than the default firefox.

Used software compenents

  • sinatra as a simple framework for web applications (based on Ruby)
  • HAML for the HTML views
  • watir for Web Application Testing in Ruby

Anpassen an nicht elexis-vagrant konforme Layouts

  • cp demo_config.yaml local_config.yaml
  • In local_config.yaml Optionen anpassen

Copyright © Niklaus Giger <niklaus.giger@member.fsf.org>
License: GPL v3.0 or later

Bei Fragen Niklaus Giger konsultieren

Clone this wiki locally