Skip to content

Instantly share code, notes, and snippets.

@joshcooper
Created January 22, 2013 22:50
Show Gist options
  • Save joshcooper/4599451 to your computer and use it in GitHub Desktop.
Save joshcooper/4599451 to your computer and use it in GitHub Desktop.
ruby -rubygems -e "require 'puppet'; puts Puppet::Type.type(:user).new(:name => 'puppet').provider"
ruby -rubygems -e "require 'puppet'; puts Puppet::Type.type(:group).new(:name => 'puppet').provider"
@apenney
Copy link

apenney commented Jan 22, 2013

[root@arch apenney]# ruby -rubygems -e "require 'puppet'; puts Puppet::Type.type(:user).new(:name => 'puppet').provider"
Userpuppet
[root@arch apenney]# ruby -rubygems -e "require 'puppet'; puts Puppet::Type.type(:group).new(:name => 'puppet').provider"
Grouppuppet

[root@arch apenney]# irb
irb(main):001:0> require 'puppet'
puts Puppet::Type.type(:group).new(:name => 'service').exists?=> true
irb(main):002:0> puts Puppet::Type.type(:group).new(:name => 'service').exists?
false
=> nil
irb(main):003:0>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment