The subscribe isn't needed if notify is used which is in point 1. There
are multiple ways to solve the problem - I prefer pushing these events
using notify rather than pulling via subscribe :-)
On 21 March 2013 10:37, Felix Frank wrote:
> Hi,
>
> On 03/14/2013 09:25 AM, Keith Burdis wrote:
> >
Hi,
On 03/14/2013 09:25 AM, Keith Burdis wrote:
> 2) Adding refreshonly => true to the exec.
>
> 3) Remove the creates and subscribe from the exec.
>
The subscribe is actually fine, but yes - the 'creates' needs to go in
order to allow repeated execution.
Note that this can be considered uncl
Perhaps try:
1) Adding a notify => Exec['unpack_archive'] to the file resource.
2) Adding refreshonly => true to the exec.
3) Remove the creates and subscribe from the exec.
That way the exec will only be called when the file changes.
- Keith
On 14 Mar 2013 07:56, wrote:
> Hello,
>
> I've c
Hello,
I've created a little class which should unpack a 7z archive on Windows.
The class has a parameter for passing in the archive version, so that I can
trigger an update when a new version of the archive is available. A
simplyfied version looks like this (requires 7z):
class my_archive ($v