Code example for Predicate

Methods: apply

0
      Attachment attachment = client.getElasticBlockStoreApi().get().attachVolumeInRegion(instance.getRegion(),
            volume.getId(), instance.getId(), "/dev/sdh");
 
      System.out.printf("%d: %s awaiting attachment to complete%n", System.currentTimeMillis(), attachment.getId());
 
      assert attachTester.apply(attachment);
      System.out.printf("%d: %s attachment complete%n", System.currentTimeMillis(), attachment.getId());
   } 
 
   // TODO use userData to do this, and make initbuilder an example for 
   // something else. 
   @BeforeTest 
   void makeScript() { 
 
      mkEbsBoot = InitScript.builder()
            .name("mkebsboot") 
            .home("/tmp") 
            .logDir("/tmp/logs") 
            .exportVariables(ImmutableMap.of("imageDir", "/mnt/tmp", "ebsDevice", "/dev/sdh", "ebsMountPoint", "/mnt/ebs"))
            .run(Statements