Class: CarthageCache::ArchiveInstaller
- Inherits:
-
Object
- Object
- CarthageCache::ArchiveInstaller
- Defined in:
- lib/carthage_cache/archive_installer.rb
Instance Attribute Summary collapse
-
#archiver ⇒ Object
readonly
Returns the value of attribute archiver.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
-
#terminal ⇒ Object
readonly
Returns the value of attribute terminal.
Instance Method Summary collapse
-
#initialize(terminal, repository, archiver, project) ⇒ ArchiveInstaller
constructor
A new instance of ArchiveInstaller.
- #install ⇒ Object
Constructor Details
#initialize(terminal, repository, archiver, project) ⇒ ArchiveInstaller
Returns a new instance of ArchiveInstaller.
10 11 12 13 14 15 |
# File 'lib/carthage_cache/archive_installer.rb', line 10 def initialize(terminal, repository, archiver, project) @terminal = terminal @repository = repository @archiver = archiver @project = project end |
Instance Attribute Details
#archiver ⇒ Object (readonly)
Returns the value of attribute archiver.
7 8 9 |
# File 'lib/carthage_cache/archive_installer.rb', line 7 def archiver @archiver end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
8 9 10 |
# File 'lib/carthage_cache/archive_installer.rb', line 8 def project @project end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
6 7 8 |
# File 'lib/carthage_cache/archive_installer.rb', line 6 def repository @repository end |
#terminal ⇒ Object (readonly)
Returns the value of attribute terminal.
5 6 7 |
# File 'lib/carthage_cache/archive_installer.rb', line 5 def terminal @terminal end |
Instance Method Details
#install ⇒ Object
17 18 19 20 |
# File 'lib/carthage_cache/archive_installer.rb', line 17 def install archive_path = download_archive unarchive(archive_path) end |