Class: Pedophile::Downloader
- Inherits:
-
Object
- Object
- Pedophile::Downloader
- Defined in:
- lib/pedophile/downloader.rb
Instance Attribute Summary collapse
-
#big_files ⇒ Object
readonly
Returns the value of attribute big_files.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#offline_tree ⇒ Object
readonly
Returns the value of attribute offline_tree.
-
#url ⇒ Object
Returns the value of attribute url.
-
#wget ⇒ Object
readonly
Returns the value of attribute wget.
Instance Method Summary collapse
-
#initialize ⇒ Downloader
constructor
A new instance of Downloader.
- #make_it_so ⇒ Object
- #zip(name = "site.zip") ⇒ Object
Constructor Details
#initialize ⇒ Downloader
Returns a new instance of Downloader.
5 6 7 8 9 10 |
# File 'lib/pedophile/downloader.rb', line 5 def initialize @login = Login.new(self) @wget = Wget.new(self) @offline_tree = OfflineTree.new(self) @big_files = BigFiles.new(self) end |
Instance Attribute Details
#big_files ⇒ Object (readonly)
Returns the value of attribute big_files.
12 13 14 |
# File 'lib/pedophile/downloader.rb', line 12 def big_files @big_files end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
12 13 14 |
# File 'lib/pedophile/downloader.rb', line 12 def login @login end |
#offline_tree ⇒ Object (readonly)
Returns the value of attribute offline_tree.
12 13 14 |
# File 'lib/pedophile/downloader.rb', line 12 def offline_tree @offline_tree end |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/pedophile/downloader.rb', line 13 def url @url end |
#wget ⇒ Object (readonly)
Returns the value of attribute wget.
12 13 14 |
# File 'lib/pedophile/downloader.rb', line 12 def wget @wget end |
Instance Method Details
#make_it_so ⇒ Object
15 16 17 18 |
# File 'lib/pedophile/downloader.rb', line 15 def make_it_so wget.mirror offline_tree.make_it_so end |
#zip(name = "site.zip") ⇒ Object
20 21 22 |
# File 'lib/pedophile/downloader.rb', line 20 def zip(name = "site.zip") offline_tree.zip(name) end |