Skip to content

Instantly share code, notes, and snippets.

@tbatchelli
Created October 26, 2010 23:48
Show Gist options
  • Save tbatchelli/648105 to your computer and use it in GitHub Desktop.
Save tbatchelli/648105 to your computer and use it in GitHub Desktop.
(comment
;; setting a bunch of attributes
(execute-task my-machine
(set-attributes-task
{:memory-size [(long 1024)]
:cpu-count [(long 2)]
:name ["A new name"]}))
;; getting a bunch of attributes
(execute-task my-machine
(get-attributes-task
[:memory-size
:cpu-count
:name ]))
;; --> {:memory-size 1024, :cpu-count 1, :name "CentOS Minimal"}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment