Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noamt/sgvm

A Groovy interface for the GVM
https://github.com/noamt/sgvm

Last synced: 16 days ago
JSON representation

A Groovy interface for the GVM

Awesome Lists containing this project

README

        

= Super Groovy enVironment Manager

*An API for the GVM written in Groovy.*

SGVM helps you use the http://gvmtool.net[awesome GVM] in your automated processes without the hassle of correctly setting up and interacting with the shell.

== Distribution

SGVM is currently distributed via https://bintray.com/noamt/java-libraries/sgvm/view[Bintray] +
image:https://api.bintray.com/packages/noamt/java-libraries/sgvm/images/download.png[link="https://bintray.com/noamt/java-libraries/sgvm/_latestVersion"]

== Implemented Methods

=== Use

*Get the http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html[path] of the latest locally installed Grails distribution:*
[source,groovy]
----
Path latestInstalledGrails = Gvm.use.grails()
----

*Install and get the http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html[path] of the latest Grails distribution:*
[source,groovy]
----
Path latestGrails = Gvm.use.grails([install: true])
----

*Install and get the http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html[path] of a specific Grails distribution:*
[source,groovy]
----
Path grails = Gvm.use.grails([version: '2.1.4', install: true])
----

=== Install

*Install and get the http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html[path] of the latest Grails distribution:*
[source,groovy]
----
Path latestGrails = Gvm.install.grails()
----

*Install and get the http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html[path] of the latest Grails distribution and set it as the default version:*
[source,groovy]
----
Path latestGrails = Gvm.install.grails([default: true])
----

*Install and get the http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html[path] of a specific Grails distribution:*
[source,groovy]
----
Path grails = Gvm.install.grails([version: '2.1.4'])
----

=== Uninstall

*Uninstall a Grails distribution:*
[source,groovy]
----
Gvm.uninstall.grails([version: '2.1.4'])
----

=== Other supported options

* offline - +false+ by default. Set +true+ in order to work without the remote GVM service.