You need to add a stub application class:

# lib/puppet/application/patch.rb
require 'puppet/application/face_base'
require 'puppet/face'
class Puppet::Application::Patch < Puppet::Application::FaceBase
end

On Mon, Jun 27, 2011 at 12:56 PM, Carl Caum <[email protected]> wrote:

> I'm trying to build a face and having trouble to get any actions to work.
>  Here's the code:
> https://gist.github.com/1049666
>
> <https://gist.github.com/1049666>Help runs fine:
>
> *sh-3.2# puppet help patch*
> *USAGE: puppet patch <action> [--terminus TERMINUS] *
> *....*
> *ACTIONS:*
> *  ....*
> *  list       List all packages with updates available from packaging
> system*
> *  ....*
> *
> *
> *TERMINI:*
>
>
> But if I try to use it:
>
> *sh-3.2# puppet patch list*
> *Error: Unknown Puppet subcommand 'patch'*
> *See 'puppet help' for help on available puppet subcommands*
> *
> *
> *
> *
> Any ideas?
>
> - Carl
> (615) 653-0887
>
>
>
>
>


-- 
Jeff McCune
Puppet Labs
@0xEFF

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to