Created
January 22, 2013 22:50
-
-
Save joshcooper/4599451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[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>