C# Class AppHarbor.AppHarborCliClient

Inheritance: IAppHarborClient
Show file Open project: appharbor/appharbor-cli

Public Methods

Method Description
AppHarborCliClient ( string accessToken ) : System
CreateApplication ( string name, string regionIdentifier ) : AppHarbor.Model.CreateResult
CreateConfigurationVariable ( string applicationId, string key, string value ) : void
CreateHostname ( string applicationId, string hostname ) : void
DeleteApplication ( string id ) : void
GetApplication ( string id ) : Application
GetApplications ( ) : IEnumerable
GetBuilds ( string applicationId ) : IEnumerable
GetConfigurationVariables ( string applicationId ) : IEnumerable
GetHostnames ( string applicationId ) : IEnumerable
GetUser ( ) : User
RemoveConfigurationVariable ( string applicationId, string key ) : void
RemoveHostname ( string applicationId, string value ) : void

Private Methods

Method Description
HandleCreateResult ( string resourceType, string key, CreateStatus status ) : void

Method Details

AppHarborCliClient() public method

public AppHarborCliClient ( string accessToken ) : System
accessToken string
return System

CreateApplication() public method

public CreateApplication ( string name, string regionIdentifier ) : AppHarbor.Model.CreateResult
name string
regionIdentifier string
return AppHarbor.Model.CreateResult

CreateConfigurationVariable() public method

public CreateConfigurationVariable ( string applicationId, string key, string value ) : void
applicationId string
key string
value string
return void

CreateHostname() public method

public CreateHostname ( string applicationId, string hostname ) : void
applicationId string
hostname string
return void

DeleteApplication() public method

public DeleteApplication ( string id ) : void
id string
return void

GetApplication() public method

public GetApplication ( string id ) : Application
id string
return AppHarbor.Model.Application

GetApplications() public method

public GetApplications ( ) : IEnumerable
return IEnumerable

GetBuilds() public method

public GetBuilds ( string applicationId ) : IEnumerable
applicationId string
return IEnumerable

GetConfigurationVariables() public method

public GetConfigurationVariables ( string applicationId ) : IEnumerable
applicationId string
return IEnumerable

GetHostnames() public method

public GetHostnames ( string applicationId ) : IEnumerable
applicationId string
return IEnumerable

GetUser() public method

public GetUser ( ) : User
return AppHarbor.Model.User

RemoveConfigurationVariable() public method

public RemoveConfigurationVariable ( string applicationId, string key ) : void
applicationId string
key string
return void

RemoveHostname() public method

public RemoveHostname ( string applicationId, string value ) : void
applicationId string
value string
return void