Class: Releasinator::DownstreamRepo
- Inherits:
-
Object
- Object
- Releasinator::DownstreamRepo
- Defined in:
- lib/downstream_repo.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #full_file_sync ⇒ Object
-
#initialize(name, url, branch, options = {}) ⇒ DownstreamRepo
constructor
A new instance of DownstreamRepo.
- #release_to_github ⇒ Object
Constructor Details
#initialize(name, url, branch, options = {}) ⇒ DownstreamRepo
Returns a new instance of DownstreamRepo.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/downstream_repo.rb', line 4 def initialize(name, url, branch, ={}) @name = name @url = url @branch = branch = # options are: # :new_branch_name (if set, ignores :release_to_github) # :release_to_github # :files_to_copy # :full_file_sync # :post_copy_methods # :build_methods end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
3 4 5 |
# File 'lib/downstream_repo.rb', line 3 def branch @branch end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/downstream_repo.rb', line 3 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/downstream_repo.rb', line 3 def end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/downstream_repo.rb', line 3 def url @url end |
Instance Method Details
#full_file_sync ⇒ Object
18 19 20 21 |
# File 'lib/downstream_repo.rb', line 18 def full_file_sync return [:full_file_sync] if .has_key? :full_file_sync false end |
#release_to_github ⇒ Object
23 24 25 26 |
# File 'lib/downstream_repo.rb', line 23 def release_to_github return [:release_to_github] if .has_key? :release_to_github false end |