[emacs-berlin] Literate dev-ops

Rasmus rasmus at gmx.us
Wed May 11 12:35:06 UTC 2016


Thanks for the link.  Tramp is pretty cool.

>   #+NAME: build-new-uberjar
>   #+BEGIN_SRC sh :var VERSION=current-version :dir /
>
> ssh:root at lambdaisland.com|sudo:web at lambdaisland.com:/var/web/app :results
> scalar

Aside: ob-sh is now ob-shell.

Personally, those long lines babel lines are too complex for me, so I like
to use the header keywords.

    #+header: :var version="1"
    #+header: :dir "/tmp"
    #+header: :results table
    #+begin_src shell 
    echo $version, $(pwd)
    #+end_src

    #+RESULTS:
    | 1 | /tmp |

Rasmus

-- 
This is the kind of tedious nonsense up with which I will not put



More information about the emacs-berlin mailing list