Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created March 28, 2012 09:25
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanwb/2225015 to your computer and use it in GitHub Desktop.
Save bryanwb/2225015 to your computer and use it in GitHub Desktop.
fun with shef and pry
check out pry screencast here http://pry.github.com/screencasts.html
install pry
$ gem install pry pry-doc
start shef
$ shef
# load pry
chef> require 'pry'
chef> binding.pry
pry> cd Chef::Resource::File
[2] pry(Chef::Resource::File):1> ls
Object.methods: yaml_tag_subclasses?
Chef::Mixin::ConvertToClassName#methods: convert_to_class_name convert_to_snake_case filename_to_qualified_string snake_case_basename
Chef::Resource.methods: attribute build_from_file json_create provider_base
locals: _ _dir_ _ex_ _file_ _in_ _out_ _pry_
[5] pry(Chef::Resource::File):1> .tree
# awesomeness
[5] pry(Chef::Resource::File):1> gem-cd chef
/var/lib/gems/1.8/gems/chef-0.10.4
[7] pry(Chef::Resource::File):1> .ls
bin distro lib LICENSE README.rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment