core/__cdist_object_code_run:
   make remote run work again

__cdist_code_run:
   should be changed to run _all_ code (has nice checks)

--------------------------------------------------------------------------------
- run-remote does not work anymore, because there is no binary :-)
   either make functions available on the other side or
   put logic on the server side.

   - trying to run type explorers nicely from local side
      - must check whether type directory has been transmitted before!

--------------------------------------------------------------------------------


   - Both type and global have...
      - local sourcedir
      - remote destination dir
      - remote out dir
      - local out dir

   - Differences are in...
      - variables exposed / submitted

  


Catch broken instances in cdist-mass-deploy -p and report broken deployements at the end!


--------------------------------------------------------------------------------
Bug with requirements when indirect requires is scheduled late:

__package/collectd: Generating local code 
__package/collectd: Generating remote code 
__package/collectd: Transferring object
__package/collectd: Checking code-local
__package/collectd: Checking code-remote
__file/etc/collectd/collectd.conf: Generating local code 
__file/etc/collectd/collectd.conf: Generating remote code 
__file/etc/collectd/collectd.conf: Transferring object
__file/etc/collectd/collectd.conf: Checking code-local
__file/etc/collectd/collectd.conf: Executing code-local
scp: /etc/collectd/collectd.conf: No such file or directory
__file/etc/collectd/collectd.conf: Error: /tmp/cdist.PYKFWmj9QknE/out/object/__file/etc/collectd/collectd.conf/.cdist/code-local exited non-zero
__file/etc/collectd/collectd.conf: Warning: Faulty code:
#
# The following code was generated by /home/users/nico/oeffentlich/rechner/projekte/cdist-nutzung/conf/type/__file/gencode-local
#

scp /home/users/nico/oeffentlich/rechner/projekte/cdist-nutzung/conf/type/__ethz_collectd/files/collectd.conf.client root@shrek08:/etc/collectd/collectd.conf
__file/etc/collectd/collectd.conf: Error: Aborting due to non-zero exit code.

