Module: Lighthouse
- Defined in:
- lib/helm/lighthouse.rb,
lib/helm/commands/create.rb
Overview
Ruby lib for working with the Lighthouse API’s XML interface.
The first thing you need to set is the account name. This is the same as the web address for your account.
Lighthouse.account = 'activereload'
Then, you should set the authentication. You can either use your login credentials with HTTP Basic Authentication or with an API Tokens. You can find more info on tokens at lighthouseapp.com/help/using-beacons.
# with basic authentication
Lighthouse.authenticate('[email protected]', 'spacemonkey')
# or, use a token
Lighthouse.token = 'abcdefg'
If no token or authentication info is given, you’ll only be granted public access.
This library is a small wrapper around the REST interface. You should read the docs at lighthouseapp.com/api.
Defined Under Namespace
Classes: Base, Bin, Change, Changeset, Error, Membership, Message, Milestone, Project, Ticket, Token, User
Class Attribute Summary collapse
-
.account ⇒ Object
Returns the value of attribute account.
-
.domain_format ⇒ Object
Returns the value of attribute domain_format.
-
.email ⇒ Object
Returns the value of attribute email.
-
.host_format ⇒ Object
Returns the value of attribute host_format.
-
.password ⇒ Object
Returns the value of attribute password.
-
.port ⇒ Object
Returns the value of attribute port.
-
.protocol ⇒ Object
Returns the value of attribute protocol.
-
.token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
-
.authenticate(email, password) ⇒ Object
Sets up basic authentication credentials for all the resources.
- .resources ⇒ Object
Class Attribute Details
.account ⇒ Object
Returns the value of attribute account.
32 33 34 |
# File 'lib/helm/lighthouse.rb', line 32 def account @account end |
.domain_format ⇒ Object
Returns the value of attribute domain_format.
31 32 33 |
# File 'lib/helm/lighthouse.rb', line 31 def domain_format @domain_format end |
.email ⇒ Object
Returns the value of attribute email.
31 32 33 |
# File 'lib/helm/lighthouse.rb', line 31 def email @email end |
.host_format ⇒ Object
Returns the value of attribute host_format.
31 32 33 |
# File 'lib/helm/lighthouse.rb', line 31 def host_format @host_format end |
.password ⇒ Object
Returns the value of attribute password.
31 32 33 |
# File 'lib/helm/lighthouse.rb', line 31 def password @password end |
.port ⇒ Object
Returns the value of attribute port.
31 32 33 |
# File 'lib/helm/lighthouse.rb', line 31 def port @port end |
.protocol ⇒ Object
Returns the value of attribute protocol.
31 32 33 |
# File 'lib/helm/lighthouse.rb', line 31 def protocol @protocol end |
.token ⇒ Object
Returns the value of attribute token.
32 33 34 |
# File 'lib/helm/lighthouse.rb', line 32 def token @token end |
Class Method Details
.authenticate(email, password) ⇒ Object
Sets up basic authentication credentials for all the resources.
43 44 45 46 |
# File 'lib/helm/lighthouse.rb', line 43 def authenticate(email, password) @email = email @password = password end |
.resources ⇒ Object
56 57 58 |
# File 'lib/helm/lighthouse.rb', line 56 def resources @resources ||= [] end |