Class GlobalRepoUpgradeOperation

  • All Implemented Interfaces:
    org.craftercms.commons.upgrade.UpgradeOperation<String>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

    public class GlobalRepoUpgradeOperation
    extends AbstractUpgradeOperation
    Implementation of UpgradeOperation that updates files on the global repository.

    Supported YAML properties:

    • files: (required) list of paths to copy to the global repository. The format of each entry of this list is {SRC_PATH}:{GLOBAL_REPO_DEST_PATH}. The first component is the path of the source file to copy, and the second component is the destination path in the global repo.
    • overwrite: (optional, defaults to true) Indicates if existing files should be overwritten.
    Author:
    joseross
    • Constructor Detail

      • GlobalRepoUpgradeOperation

        public GlobalRepoUpgradeOperation​(StudioConfiguration studioConfiguration)
    • Method Detail

      • doInit

        public void doInit​(org.apache.commons.configuration2.HierarchicalConfiguration config)
        Overrides:
        doInit in class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<String>