Class: Blockbuster::Master

Inherits:
Object
  • Object
show all
Includes:
Extractor, Packager
Defined in:
lib/blockbuster/master.rb

Overview

Master file object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configurationObject (readonly)

Returns the value of attribute configuration.



7
8
9
# File 'lib/blockbuster/master.rb', line 7

def configuration
  @configuration
end

#file_nameObject (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_pathObject

read path



16
17
18
# File 'lib/blockbuster/master.rb', line 16

def file_path
  configuration.master_tar_file_path
end

#target_pathObject

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