Re: Streamlined application/script development [Re: coding an Application in perl]

Jean-Louis Martineau <[email protected]> Fri, 1 Sep 2017 10:41:46 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
On 01/09/17 10:23 AM, Chapman Flack wrote:
> On 09/01/2017 10:00 AM, Jean-Louis Martineau wrote:
>> I'm working on a new features where the command_backup will get feedback
>> from the server to get a confirmation the backup is secured on
>> holdingdisk/tape.
>> Updating the statefile must be done after that.
>>
>> To ease the merge, can you split inner_backup in two methods:
>> inner_backup() and backup_update_state()
>> command_backup should call them sequentially for now.
> Maybe even easier, as update_local_state() and write_local_state()
> are already split (update only changes in-memory data), could just
> have command_backup call inner_backup and then write_local_state
> (if --record was requested). Application author still only has to
> write inner_backup and it still calls update_local_state, but
> no longer calls write_local_state.

Looks good
This message is the property of CARBONITE, INC. and may contain confidential or privileged information.
If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone.  Instead, destroy it and notify me by reply e-mail