lib/gossh/client.rb
# Persistence layer file location for saving SSH paths
Persistence layer file location for saving SSH paths
Persistence layer file location for saving SSH paths
def add(obj)
      new_connection = GoSSH::Connection.new(obj)
      if @connections.any? {|connection| connection.alias == new_connection.alias}
        raise GoSSH::Error.new("Error: A connection already exists with this alias")
      else
        @connections << new_connection
        save
      end
    end
def add ( obj ) new_connection = GoSSH :: Connection . new ( obj ) if @connections . any? { | connection | connection . alias == new_connection . alias } raise GoSSH :: Error . new ( "Error: A connection already exists with this alias" ) else @connections << new_connection save end end
Persistence layer file location for saving SSH paths
Persistence layer file location for saving SSH paths
obj
<not_specific>