Class: GitPusher::Service::GitHub
- Defined in:
- lib/gitpusher/service/github.rb
Instance Attribute Summary collapse
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(config) ⇒ GitHub
constructor
A new instance of GitHub.
- #repos ⇒ Object
Constructor Details
#initialize(config) ⇒ GitHub
Returns a new instance of GitHub.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/gitpusher/service/github.rb', line 9 def initialize(config) super(config) @user = Pit.get( 'github', :require => { 'user' => 'Your user name of GitHub' } )['user'] @password = Pit.get( 'github', :require => { 'password' => 'Your user password of GitHub' } )['password'] @organization = config[:organization] end |
Instance Attribute Details
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
7 8 9 |
# File 'lib/gitpusher/service/github.rb', line 7 def organization @organization end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
7 8 9 |
# File 'lib/gitpusher/service/github.rb', line 7 def password @password end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
7 8 9 |
# File 'lib/gitpusher/service/github.rb', line 7 def user @user end |