Class: Blockbuster::Master
- Inherits:
-
Object
- Object
- Blockbuster::Master
- Defined in:
- lib/blockbuster/master.rb
Overview
Master file object
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
Instance Method Summary collapse
-
#file_path ⇒ Object
read path.
-
#initialize(comparator, configuration) ⇒ Master
constructor
A new instance of Master.
-
#target_path ⇒ Object
write path (master will always write to the same file name).
Methods included from Packager
#create_cassette_file, #tar_file, #write_to_disk
Methods included from Extractor
#extract_cassettes, #save_to_disk, #untar_file
Constructor Details
#initialize(comparator, configuration) ⇒ Master
Returns a new instance of Master.
9 10 11 12 13 |
# File 'lib/blockbuster/master.rb', line 9 def initialize(comparator, configuration) @configuration = configuration @comparator = comparator @file_name = configuration.master_tar_file end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
7 8 9 |
# File 'lib/blockbuster/master.rb', line 7 def configuration @configuration end |
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
7 8 9 |
# File 'lib/blockbuster/master.rb', line 7 def file_name @file_name end |
Instance Method Details
#file_path ⇒ Object
read path
16 17 18 |
# File 'lib/blockbuster/master.rb', line 16 def file_path configuration.master_tar_file_path end |
#target_path ⇒ Object
write path (master will always write to the same file name)
21 22 23 |
# File 'lib/blockbuster/master.rb', line 21 def target_path file_path end |