Skip to content

Commit

Permalink
[Enh]: GnuCash File w Unzipping - Move From Computer World
Browse files Browse the repository at this point in the history
Better situated in a resource than as utility methods there
  • Loading branch information
seandenigris committed Nov 16, 2023
1 parent 753b70c commit 20ea040
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/ResourcesLive/VsGnuCashFile.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Class {
#name : #VsGnuCashFile,
#superclass : #RlResource,
#category : #ResourcesLive
}

{ #category : #accessing }
VsGnuCashFile class >> fileExtensions [
^ #('gnucash')
]

{ #category : #accessing }
VsGnuCashFile >> uncompress [

| target |
target := Tempfile withSuffix: '.xml'.
SuGenericUnixCommand new
template: '/usr/bin/gunzip -c {source} > {target}';
argumentAt: #source put: self file;
argumentAt: #target put: target;
run.
^ target
]

0 comments on commit 20ea040

Please sign in to comment.