Class: Avm::Data::Package::Dump

Inherits:
BasePerformer show all
Includes:
BuildDirectory
Defined in:
lib/avm/data/package/dump.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BasePerformer

#excludes, #includes, #selected_units

Constructor Details

#initialize(package, target_path, options = {}) ⇒ Dump

Returns a new instance of Dump.



17
18
19
20
# File 'lib/avm/data/package/dump.rb', line 17

def initialize(package, target_path, options = {})
  super(package, options)
  @target_path = target_path.to_pathname
end

Instance Attribute Details

#target_pathObject (readonly)

Returns the value of attribute target_path.



15
16
17
# File 'lib/avm/data/package/dump.rb', line 15

def target_path
  @target_path
end

Instance Method Details

#resultvoid

This method returns an undefined value.



23
24
25
26
27
28
# File 'lib/avm/data/package/dump.rb', line 23

def result
  on_build_directory do
    dump_units_to_build_directory
    create_package_file
  end
end