I needed to have Puppet run the asadmin redeploy command when the source jar gets updated, so implemented refresh behaviour in the application type and provider.
Tests written and passing, but not quite complete. The provider is covered, but not the type: at present I'm not sure what the correct rspec incantations are to mock the provider and set expectations. Other modules I've looked at for reference do so in quite a different style. Happy to work with any pointers you could give in this area and complete the test coverage.
I needed to have Puppet run the asadmin redeploy command when the source jar gets updated, so implemented refresh behaviour in the
application
type and provider.Tests written and passing, but not quite complete. The provider is covered, but not the type: at present I'm not sure what the correct rspec incantations are to mock the provider and set expectations. Other modules I've looked at for reference do so in quite a different style. Happy to work with any pointers you could give in this area and complete the test coverage.