Class: Stevenson::OutputFilter::Zip
- Inherits:
-
Base
- Object
- Base
- Stevenson::OutputFilter::Zip
show all
- Defined in:
- lib/stevenson/output_filters/zip.rb
Instance Attribute Summary
Attributes inherited from Base
#directory, #options
Instance Method Summary
collapse
Methods inherited from Base
included, #initialize
Instance Method Details
#output ⇒ Object
7
8
9
10
11
12
|
# File 'lib/stevenson/output_filters/zip.rb', line 7
def output
File.join(directory, "#{zip_file_name}.zip").tap do |output_zip_path|
write directory, output_zip_path
end
end
|
#zip_file_name ⇒ Object
14
15
16
|
# File 'lib/stevenson/output_filters/zip.rb', line 14
def zip_file_name
options[:zip] == "zip" ? File.basename(directory) : options[:zip]
end
|