Skip to content

Instantly share code, notes, and snippets.

@daya

daya/a.rb Secret

Created February 5, 2016 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daya/95b8320745ae4bd06d4f to your computer and use it in GitHub Desktop.
Save daya/95b8320745ae4bd06d4f to your computer and use it in GitHub Desktop.
task startElasticSearch(){
if (System.properties['os.name'].toLowerCase().contains('windows')) {
logger.error( "Not Starting Elasticsearch ....")
return
} else if (System.properties['os.name'].contains('Mac OS X')) {
println( "Starting elasticsearch locally")
}
jrubyexec {
// group 'Site'
// configuration "asciidoctor"
script "${projectDir}/scripts/install-run-elasticsearch.rb"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment