Package net.augeas

Examples of net.augeas.Augeas.save()


        initAugeas();
        String rootPath = getResourceConfigurationRootPath();
        try {
            Augeas augeas = getAugeas();
            augeas.remove(rootPath);
            augeas.save();
        } finally {
            close();
        }
    }
View Full Code Here


                    .length());
                String propValue = translator.getPropertyValue(propName, from);

                aug.set("/files" + file + "/" + pathSuffix, propValue);
            }
            aug.save();

            toUpdate.setPath(existingConfig.getPath());
            String contents = FileUtils.readFileToString(new File(file));
            String sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(contents);
            toUpdate.setContents(contents, sha256);
View Full Code Here

        String rootPath = getResourceConfigurationRootPath();
        initAugeas();
        try {
            Augeas augeas = getAugeas();
            augeas.remove(rootPath);
            augeas.save();
        } finally {
            close();
        }
    }
View Full Code Here

                        augeas.set(settingPath, value);
                    }
                }
            }

            augeas.save();
        } catch (AugeasException e) {
            if (augeas != null)
                throw new RuntimeException(summarizeAugeasError(augeas), e);
            else
                throw new RuntimeException(e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.