| Don Dugger | f84eb5b | 2014-01-30 09:59:30 -0700 | [diff] [blame] | 1 | # gantt.sh - Devstack extras script to install Gantt | 
|  | 2 |  | 
|  | 3 | if is_service_enabled n-sch; then | 
|  | 4 | disable_service gantt | 
|  | 5 | fi | 
|  | 6 |  | 
|  | 7 | if is_service_enabled gantt; then | 
|  | 8 | if [[ "$1" == "source" ]]; then | 
|  | 9 | # Initial source | 
|  | 10 | source $TOP_DIR/lib/gantt | 
|  | 11 | elif [[ "$1" == "stack" && "$2" == "install" ]]; then | 
|  | 12 | echo_summary "Installing Gantt" | 
|  | 13 | install_gantt | 
|  | 14 | cleanup_gantt | 
|  | 15 | elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then | 
|  | 16 | echo_summary "Configuring Gantt" | 
|  | 17 | configure_gantt | 
|  | 18 |  | 
|  | 19 | elif [[ "$1" == "stack" && "$2" == "extra" ]]; then | 
|  | 20 | # Initialize gantt | 
|  | 21 | init_gantt | 
|  | 22 |  | 
|  | 23 | # Start gantt | 
|  | 24 | echo_summary "Starting Gantt" | 
|  | 25 | start_gantt | 
|  | 26 | fi | 
|  | 27 |  | 
|  | 28 | if [[ "$1" == "unstack" ]]; then | 
|  | 29 | stop_gantt | 
|  | 30 | fi | 
|  | 31 | fi |