-
-
Save daya/95b8320745ae4bd06d4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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