Class: Radius::Toolbelt::ReleaseRepo
- Inherits:
-
Object
- Object
- Radius::Toolbelt::ReleaseRepo
- Includes:
- Rake::DSL
- Defined in:
- lib/radius/toolbelt/release_repo.rb
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#ver ⇒ Object
readonly
Returns the value of attribute ver.
Instance Method Summary collapse
-
#initialize(repo, ver, dir, files) ⇒ ReleaseRepo
constructor
A new instance of ReleaseRepo.
- #run ⇒ Object
Constructor Details
#initialize(repo, ver, dir, files) ⇒ ReleaseRepo
Returns a new instance of ReleaseRepo.
10 11 12 13 14 15 |
# File 'lib/radius/toolbelt/release_repo.rb', line 10 def initialize(repo, ver, dir, files) @repo = repo @dir = dir @ver = ver @files = files end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
9 10 11 |
# File 'lib/radius/toolbelt/release_repo.rb', line 9 def dir @dir end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
9 10 11 |
# File 'lib/radius/toolbelt/release_repo.rb', line 9 def files @files end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
9 10 11 |
# File 'lib/radius/toolbelt/release_repo.rb', line 9 def repo @repo end |
#ver ⇒ Object (readonly)
Returns the value of attribute ver.
9 10 11 |
# File 'lib/radius/toolbelt/release_repo.rb', line 9 def ver @ver end |
Instance Method Details
#run ⇒ Object
17 18 19 20 21 22 |
# File 'lib/radius/toolbelt/release_repo.rb', line 17 def run puts "Releasing to repo in #{dir}" checkout copy tag_commit_push end |