Skip to content

Commit

Permalink
Replace header docs to javadoc
Browse files Browse the repository at this point in the history
- Looks like bug on the parser in `Xcode 7 ß 1` is gone on `ß 2`
  • Loading branch information
esttorhe committed Jun 24, 2015
1 parent fa66b0d commit c8c2087
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions XcodeServerSDK/XcodeServerConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ public class XcodeServerConfig : JSONSerializable {
return dict
}

///
/// Initializes a server configuration with the provided host.
/// - parameter host: `Xcode` server host.
/// - paramater user: Username that will be used to authenticate against the `host` provided.
/// Can be `nil`.
///
/// - parameter password: Password that will be used to authenticate against the `host` provided.
/// Can be `nil`.
///
/// - returns: A fully initialized `XcodeServerConfig` instance.
///
/// - throws:
/// - `InvalidHostProvided`: When the host provided doesn't produce a valid `URL`
/// - `InvalidSchemeProvided`: When the provided scheme is not `HTTPS`
///
/**
Initializes a server configuration with the provided host.
- parameter host: `Xcode` server host.
- paramater user: Username that will be used to authenticate against the `host` provided.
Can be `nil`.

- parameter password: Password that will be used to authenticate against the `host` provided.
Can be `nil`.

- returns: A fully initialized `XcodeServerConfig` instance.

- throws:
- `InvalidHostProvided`: When the host provided doesn't produce a valid `URL`
- `InvalidSchemeProvided`: When the provided scheme is not `HTTPS`
*/
public required init(var host: String, user: String?, password: String?) throws {
guard let url = NSURL(string: host) else {
/*******************************************************************
Expand Down Expand Up @@ -95,17 +95,17 @@ public class XcodeServerConfig : JSONSerializable {
self.availabilityState = .Unchecked
}

///
/// Initializes a server configuration with the provided `json`.
/// - parameter json: `NSDictionary` containing the `XcodeServerConfig` «configuration».
///
/// - returns: A fully initialized `XcodeServerConfig` instance.
///
/// - throws:
/// - `NoHostProvided`: When no `host` key was found on the provided `json` dictionary.
/// - `InvalidHostProvided`: When the host provided doesn't produce a valid `URL`
/// - `InvalidSchemeProvided`: When the provided scheme is not `HTTPS`
///
/**
Initializes a server configuration with the provided `json`.
- parameter json: `NSDictionary` containing the `XcodeServerConfig` «configuration».

- returns: A fully initialized `XcodeServerConfig` instance.

- throws:
- `NoHostProvided`: When no `host` key was found on the provided `json` dictionary.
- `InvalidHostProvided`: When the host provided doesn't produce a valid `URL`
- `InvalidSchemeProvided`: When the provided scheme is not `HTTPS`
*/
public required convenience init?(json: NSDictionary) throws {
guard let host = json.optionalStringForKey("host") else {
throw ConfigurationErrors.NoHostProvided
Expand Down

0 comments on commit c8c2087

Please sign in to comment.