Skip to content

Commit

Permalink
add get-ip! ; bump 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Dec 15, 2018
1 parent 509d8ae commit b497a9b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Cumulo Util (WIP)
[![Clojars Project](https://img.shields.io/clojars/v/cumulo/util.svg)](https://clojars.org/cumulo/util)

```edn
[cumulo/util "0.1.1-a4"]
[cumulo/util "0.1.2"]
```

```clojure
Expand All @@ -23,6 +23,8 @@ Cumulo Util (WIP)
(cumulo-util.file/write-mildly! "a.text" "content")
(cumulo-util.file/get-backup-path!)
(cumulo-util.file/merge-local-edn! {} "a.edn" (fn [found?] (println found?)))

(cumulo-util.build/get-ip!) ; a macro
```

### License
Expand Down
7 changes: 7 additions & 0 deletions macros/cumulo_util/build.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

(ns cumulo-util.build
(:require [clojure.string :as string])
(:import (java.net InetAddress)))

(defmacro get-ip! []
(.getHostAddress (InetAddress/getLocalHost)))
3 changes: 3 additions & 0 deletions macros/cumulo_util/build.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

(ns cumulo-util.build
(:require-macros cumulo-util.build))
2 changes: 1 addition & 1 deletion meyvn.edn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{:pom {:group-id "cumulo",
:artifact-id "util",
:version "0.1.1-a4",
:version "0.1.2",
:name "Util functions for Cumulo projects"}
:packaging {:jar {:enabled true
:remote-repository {:id "clojars"
Expand Down

0 comments on commit b497a9b

Please sign in to comment.