Class P4
In: P4Triggers.rb
Parent: Object

Reopen the P4 class to restructuring the output of "p4 describe -s" into a P4Change object, and to disable any attempt to submit - just in case someone’s foolish enough to try

Methods
run_describe    run_submit    submit_spec   
Public Instance methods
run_describe( *args )
# File P4Triggers.rb, line 128
    def run_describe( *args )
        h = run( "describe", args ).shift
        return h unless h.kind_of?( Hash )
        return P4Change.new( h )
    end
submit_spec()

Disable the submit_spec interface

# File P4Triggers.rb, line 135
    def submit_spec
        raise( "Attempt to submit during trigger execution. Don't do it." )
    end
run_submit()

Disable the direct interface to submit

# File P4Triggers.rb, line 140
    def run_submit
        raise( "Attempt to submit during trigger execution. Don't do it." )
    end