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 @@ - -bolt
bolt
bolt
6.12

bolt

wes

 (require bolt) package: bolt

Package Description Here

 
\ No newline at end of file diff --git a/doc/bolt/out0.sxref b/doc/bolt/out0.sxref deleted file mode 100644 index 5a79622..0000000 Binary files a/doc/bolt/out0.sxref and /dev/null differ diff --git a/doc/bolt/out1.sxref b/doc/bolt/out1.sxref deleted file mode 100644 index 5c21616..0000000 Binary files a/doc/bolt/out1.sxref and /dev/null differ diff --git a/doc/bolt/provides.sxref b/doc/bolt/provides.sxref deleted file mode 100644 index d4edd49..0000000 Binary files a/doc/bolt/provides.sxref and /dev/null differ diff --git a/doc/bolt/stamp.sxref b/doc/bolt/stamp.sxref deleted file mode 100644 index 3d4f4ef..0000000 --- a/doc/bolt/stamp.sxref +++ /dev/null @@ -1 +0,0 @@ -("f7c4c2295c53d7e662ba4d803aa99e517b2ad0f3c5772ebc856486c25b608e65faa6f21acdf5b6f3" "cffc520df8c71fbcf032bd9484bbd5e083e1eea3a39f82aa67381598121c046838efb79ea4422363" "d8d3930e051fde87175bb0f52680184b782e2377") \ No newline at end of file diff --git a/doc/bolt/synced.rktd b/doc/bolt/synced.rktd deleted file mode 100644 index e69de29..0000000 diff --git a/main.rkt b/main.rkt deleted file mode 100644 index 2f6739e..0000000 --- a/main.rkt +++ /dev/null @@ -1,4 +0,0 @@ -#lang racket/base - -(require "./src/bolt.rkt") -(provide (all-from-out "./src/bolt.rkt")) diff --git a/scribblings/bolt.scrbl b/scribblings/bolt.scrbl deleted file mode 100644 index 394c880..0000000 --- a/scribblings/bolt.scrbl +++ /dev/null @@ -1,10 +0,0 @@ -#lang scribble/manual -@require[@for-label[bolt - racket/base]] - -@title{bolt} -@author{wes} - -@defmodule[bolt] - -Package Description Here