On Mon, Jun 27, 2011 at 13:05, Jeff McCune <[email protected]> wrote: > 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
Requiring 'puppet/face' is unnecessary, but this is otherwise true. Generally, you should *never* need to write any code in this application shim. If you do, something has already gone wrong; by design, faces are supposed to be self-contained. These just exist because of limitations of our legacy application loader and structure. Daniel > > 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 >> 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 > -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <[email protected]> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- 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.
