Changeset 123 for trunk/confman/confman


Ignore:
Timestamp:
12/04/2006 20:38:36 (5 years ago)
Author:
ccowart
Message:

Developed the pull mechanism for confman. It's ready to go into production!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman/confman

    r122 r123  
    9696                        conf_assemble_sing $file || return $? 
    9797                done 
     98        conf_recordAction commit 
     99        conf_markclean 
    98100                echo "Commit operation finished successfully" >&2 
    99101                rm -f $msg 
    100  
    101102        else 
    102103                print_usage 1 
     
    120121 
    121122                echo "Installation operation started." >&2 
     123        conf_commit "$LAYERS" $msg || return $? 
    122124                for layer in $LAYERS ; do 
    123                         $DEBUG && echo "Layer: $layer" >&4 
    124                         conf_commit $layer $msg || return $? 
    125                         conf_install $layer $* 
     125                        conf_install $layer "$@" 
    126126                done 
    127127                for file in $SINGULARITIES ; do 
    128128                        conf_assemble_sing $file || conf_cleanexit 
    129129                done 
     130        conf_recordAction install 
     131        if ! conf_isclean ; then 
     132            echo "WARNING: Recent 'install' operations prevented a 'sync'" >&2 
     133            echo "Running a 'commit' is highly recommended." >&2 
     134        fi 
    130135                echo "Installation operation succeeded." >&2 
    131136        fi 
     
    576581 
    577582    conf_rmattr "$attr" "$@" 
     583} 
     584 
     585function state { 
     586    if conf_isclean ; then 
     587        echo "This host is clean." 
     588    else 
     589        echo "This host may be dirty. Consider running a 'commit' operation" 
     590    fi 
    578591} 
    579592 
     
    598611    help )                          print_help "$@" ; exit 0 ;; 
    599612    setup|se* )                     setup "$@" ;; 
    600     status|st* )                    status "$@" ;; 
     613    status )                        status "$@" ;; 
     614    state )                         state ;; 
    601615    create|cr* )                    create "$@" ;; 
    602616    update|u* )                     update "$@" ;; 
Note: See TracChangeset for help on using the changeset viewer.