lib/ztk/ssh/private.rb
# Process a individual key, rendering it to a temporary file if needed.
Process a individual key, rendering it to a temporary file if needed.
Process a individual key rendering it to a temporary file if needed .
def process_key(key)
        if ::File.exists?(key)
          key
        else
          tempfile = ::Tempfile.new('key')
          tempfile.write(key)
          tempfile.flush
          tempfile.path
        end
      end
def process_key ( key ) if :: File . exists? ( key ) key else tempfile = :: Tempfile . new ( 'key' ) tempfile . write ( key ) tempfile . flush tempfile . path end end
Process a individual key, rendering it to a temporary file if needed.
Process a individual key rendering it to a temporary file if needed .
key
<not_specific>