Created
March 28, 2012 09:25
-
-
Save bryanwb/2225015 to your computer and use it in GitHub Desktop.
fun with shef and pry
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
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