On Thu, Sep 15, 2011 at 4:23 AM, Hugo Duncan <duncan.h...@gmail.com> wrote:

> On Wed, 14 Sep 2011 15:34:25 -0400, Denis Labaye <denis.lab...@gmail.com>
> wrote:
>
>  I played with it a little bit, can't make the latest version (0.7) to
>> work, only the 0.5.
>>
>
> The current version will require you use (with-script-language
> :pallet.stevedore.bash/bash …) to specify bash as the target language


Yes I tried that by looking at the unit tests, but in my setup it breaks : a
"emit" multimethod impl wasn't found. It did the same when running the unit
test (same emit impl not found).


I will investigate and open an github issue if necessary.


>
>
>  So far it seems pretty cool. I am not sure yet how to unit test the
>> "clojure bash scripts" but the repl is much more confortable than the raw
>> bash shell.
>>
>
> The stevedore tests might provide inspiration.
>
>
>  And by the way the marginalia doc is awesome !
>>
>
> Thanks. There is also:
>  
> http://pallet.github.com/**pallet/reference/reference_**script.html<http://pallet.github.com/pallet/reference/reference_script.html>
>
> (which needs updating and moving to go with the rest of the stevedore docs)
>

That's great, it's exactly what I needed!

One more thing: Is there any easy ways to execute scripts from within
Clojure ?
I am tempted to do something like :

(with-test (is (= "someFile"
                  (:out (sh (script (ls "someDir")))))))

Because - as I am proceeding now - , the feedback loop is doubled:

   1. execute the clojure script
   2. generate the bash script
   3. execute the bash script
   4. if problem go back to 1)

Plus it would be nice to test the script from within clojure to be able to
mock long operations like provisionning an EC2 instance, ...

Denis




>
> --
> Hugo Duncan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscribe@**googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to