apigee / henchman

Orchestration and Automation tool
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

`template` module override should merge with the destination, instead of deleting and re-creating the destination. #139

Open baskaran-md opened 8 years ago

baskaran-md commented 8 years ago

Local Folder/files

[localhost /]$ tree /opt/token
/opt/token
└── application
    ├── foo.properties
    ├── blah.properties
    └── baz.properties

Remote Location : Initial

[remotehost /]$ tree /opt/token
/opt/token
├── application
│   ├── foo.properties
│   └── bar.properties
└── conf

2 directories, 0 files
[ec2-user@henchman55 /]$```

**Task**

template: src="/opt/token" dest="/opt/token"

Remote Location : Final

[remotehost /]$ tree /opt/token
/opt/token
├── application
│   ├── foo.properties (new foo, overrided existing foo)
│   ├── blah.properties
│   ├── baz.properties
│   └── bar.properties (old bar)
└── conf (old conf folder)
jlin21 commented 8 years ago

Convert the python scripts to support this feature. Applies to 'copy' module as well