diff --git a/README.md b/README.md index 554f6ad..f2e4a5e 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,16 @@ Bolt Bolt is an automation DSL, similar to [http://fabfile.org](http://fabfile.org) +### Installation + + Example: ``` #! /usr/bin/env racket #lang racket -(require "src/bolt.rkt") +(require bolt) ; This is based on an entry in ~/.ssh/config (define metaverse diff --git a/src/bolt.rkt b/bolt/bolt.rkt similarity index 100% rename from src/bolt.rkt rename to bolt/bolt.rkt diff --git a/src/directory.rkt b/bolt/directory.rkt similarity index 100% rename from src/directory.rkt rename to bolt/directory.rkt diff --git a/doc/doc-site.css b/bolt/doc/doc-site.css similarity index 100% rename from doc/doc-site.css rename to bolt/doc/doc-site.css diff --git a/doc/doc-site.js b/bolt/doc/doc-site.js similarity index 100% rename from doc/doc-site.js rename to bolt/doc/doc-site.js diff --git a/doc/manual-fonts.css b/bolt/doc/manual-fonts.css similarity index 100% rename from doc/manual-fonts.css rename to bolt/doc/manual-fonts.css diff --git a/doc/manual-racket.css b/bolt/doc/manual-racket.css similarity index 100% rename from doc/manual-racket.css rename to bolt/doc/manual-racket.css diff --git a/doc/manual-racket.js b/bolt/doc/manual-racket.js similarity index 100% rename from doc/manual-racket.js rename to bolt/doc/manual-racket.js diff --git a/doc/manual-style.css b/bolt/doc/manual-style.css similarity index 100% rename from doc/manual-style.css rename to bolt/doc/manual-style.css diff --git a/doc/racket.css b/bolt/doc/racket.css similarity index 100% rename from doc/racket.css rename to bolt/doc/racket.css diff --git a/doc/scribble-common.js b/bolt/doc/scribble-common.js similarity index 100% rename from doc/scribble-common.js rename to bolt/doc/scribble-common.js diff --git a/doc/scribble-style.css b/bolt/doc/scribble-style.css similarity index 100% rename from doc/scribble-style.css rename to bolt/doc/scribble-style.css diff --git a/doc/scribble.css b/bolt/doc/scribble.css similarity index 100% rename from doc/scribble.css rename to bolt/doc/scribble.css diff --git a/info.rkt b/bolt/info.rkt similarity index 82% rename from info.rkt rename to bolt/info.rkt index 650d7eb..722d2bd 100644 --- a/info.rkt +++ b/bolt/info.rkt @@ -1,11 +1,12 @@ #lang info + (define collection "bolt") + (define deps '("base" "rackunit-lib" "remote-shell")) (define build-deps '("scribble-lib" "racket-doc")) -(define scribblings '(("scribblings/bolt.scrbl" ()))) (define pkg-desc "Description Here") (define version "0.0") (define pkg-authors '(wes)) diff --git a/bolt/main.rkt b/bolt/main.rkt new file mode 100644 index 0000000..e979ff7 --- /dev/null +++ b/bolt/main.rkt @@ -0,0 +1,4 @@ +#lang racket/base + +(require "bolt.rkt") +(provide (all-from-out "bolt.rkt")) diff --git a/src/shell_env.rkt b/bolt/shell_env.rkt similarity index 100% rename from src/shell_env.rkt rename to bolt/shell_env.rkt diff --git a/src/unparse.rkt b/bolt/unparse.rkt similarity index 100% rename from src/unparse.rkt rename to bolt/unparse.rkt diff --git a/src/utils.rkt b/bolt/utils.rkt similarity index 100% rename from src/utils.rkt rename to bolt/utils.rkt diff --git a/deploy.rkt b/deploy.rkt new file mode 100755 index 0000000..ce93d5c --- /dev/null +++ b/deploy.rkt @@ -0,0 +1,28 @@ +#! /usr/bin/env racket +#lang racket + +(require bolt) + +; This is based on an entry in ~/.ssh/config +(define primop + (remote + #:host "linode" + #:user "wes" + #:key "/home/wes/.ssh/id_rsa.key")) + +(define (deploy) + (with-host primop + (with-shell-vars + (["a" "b"]) + (become "wes" + (copy-dir "../pricewatch" "/home/wes/pricewatch") + + (with-cwd "/home/wes/pricewatch" + + (become "root" + (exec "pip install pipenv")) + + (with-cwd "checks" + (exec "pipenv install"))))))) + +(deploy) diff --git a/doc/bolt/blueboxes.rktd b/doc/bolt/blueboxes.rktd deleted file mode 100644 index 255e69a..0000000 --- a/doc/bolt/blueboxes.rktd +++ /dev/null @@ -1,2 +0,0 @@ -33 -((3) 0 () 0 () () (h ! (equal))) diff --git a/doc/bolt/in.sxref b/doc/bolt/in.sxref deleted file mode 100644 index 06c154d..0000000 Binary files a/doc/bolt/in.sxref and /dev/null differ diff --git a/doc/bolt/index.html b/doc/bolt/index.html deleted file mode 100644 index c821480..0000000 --- a/doc/bolt/index.html +++ /dev/null @@ -1,2 +0,0 @@ - -