タグ

2014年11月1日のブックマーク (1件)

  • groovyあれこれ

    groovyとshipyardでcontainerを再起動するには、以下のサンプルコードのようにX-Service-Keyにサービスキーを設定して/api/containers/<container-id>/restartにアクセスします。 サンプルコード @Grab(group='org.apache.httpcomponents', module='httpclient', version='4.3.6') import org.apache.http.client.methods.* import org.apache.http.impl.client.* import org.apache.http.message.* import org.apache.http.auth.* import org.apache.http.entity.* import groovy.json.*

    ksky
    ksky 2014/11/01