Package org.platformlayer.ops.filesystem

Examples of org.platformlayer.ops.filesystem.FilesystemAction


  @Override
  protected void addChildren() throws OpsException {
    addChild(ManagedDirectory.build(BASE_DIR, "0644"));

    addChild(SimpleFile.build(getClass(), new File("/etc/network/if-pre-up.d/iptables-lockdown"))
        .setFileMode("755").setUpdateAction(new FilesystemAction() {

          @Override
          public void execute(OpsTarget target, ManagedFilesystemItem managedFilesystemItem)
              throws OpsException {
            if (managedFilesystemItem.getNewFileWasCreated()) {
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.filesystem.FilesystemAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.