Change 4261

tony_smith (Tony Smith)
Tony Smith committed this change into //guest/tony_smith/perforce/API/Ruby
Request Review
Download .zip
Add support for parsing arbitrary specs from strings in Ruby space.
Useful with spec depots. You might obtain the spec by running a
"p4 print -q" against a file in a spec depot, but want to parse it
into a Ruby hash.

i.e.
    p4 = P4.new
    p4.parse_forms    # Required!
    p4.connect

    buf = p4.run_print( "-q", "//specs/client/myclient" )
    spec = p4.parse_client( buf )

    # Or equivalently
    spec = p4.parse_spec( "client", buf )
  • Files 10
  • Comments 0
10 edited 0 added 0 deleted
current/P4Ruby.tar.gz#24
Loading...
main/Changes#30
Loading...
main/clientuserruby.cpp#9
Loading...
main/clientuserruby.h#11
Loading...
main/doc/P4.html#6
Loading...
main/lib/P4.rb#14
Loading...
main/p4.cpp#7
Loading...
main/p4clientapi.cpp#4
Loading...
main/p4clientapi.h#12
Loading...
main/p4rb_version.h#32
Loading...
Tip: Use n and p to cycle through the changes.