Class: Releasy::Deployers::Github
- Defined in:
- lib/releasy/deployers/github.rb
Overview
Deploys to a Github project’s downloads page.
Constant Summary collapse
- TYPE =
:github
- UPLOAD_TIMEOUT =
Maximum time to allow an upload to continue. An hour to upload a file isn’t unreasonable. Better than the default 2 minutes, which uploads about 4MB for me.
60 * 60
Constants inherited from Deployer
Constants included from Mixins::Log
Mixins::Log::DEFAULT_LOG_LEVEL, Mixins::Log::LOG_LEVELS
Instance Attribute Summary collapse
-
#description ⇒ String
(project.description) Description of file.
-
#repository ⇒ String
(repository name in ‘git config remote.origin.url` or project.underscored_name) Name of Github repository.
-
#token ⇒ String
(‘git config github.token`) Github token associated with #user - a 32-digit hexadecimal string - DO NOT COMMIT A FILE CONTAINING YOUR GITHUB TOKEN!.
-
#user ⇒ String
(‘git config github.user` or user name in `git config remote.origin.url`) Github user name that has write access to #repository.
Attributes inherited from Deployer
Instance Method Summary collapse
-
#replace! ⇒ Object
Force replacement of existing uploaded files.
Methods inherited from Deployer
Methods included from Mixins::Log
Constructor Details
This class inherits a constructor from Releasy::Deployers::Deployer
Instance Attribute Details
#description ⇒ String
(project.description) Description of file.
19 20 21 |
# File 'lib/releasy/deployers/github.rb', line 19 def description @description end |
#repository ⇒ String
(repository name in ‘git config remote.origin.url` or project.underscored_name) Name of Github repository.
19 20 21 |
# File 'lib/releasy/deployers/github.rb', line 19 def repository @repository end |
#token ⇒ String
(‘git config github.token`) Github token associated with #user - a 32-digit hexadecimal string - DO NOT COMMIT A FILE CONTAINING YOUR GITHUB TOKEN!
19 20 21 |
# File 'lib/releasy/deployers/github.rb', line 19 def token @token end |
#user ⇒ String
(‘git config github.user` or user name in `git config remote.origin.url`) Github user name that has write access to #repository
19 20 21 |
# File 'lib/releasy/deployers/github.rb', line 19 def user @user end |
Instance Method Details
#replace! ⇒ Object
Force replacement of existing uploaded files.
52 53 54 |
# File 'lib/releasy/deployers/github.rb', line 52 def replace! @force_replace = true end |