Migrating functinoality from OSSubprocess to GtSubprocess.
This commit is contained in:
parent
1378d854c4
commit
22b1859d37
@ -34,16 +34,12 @@ Nimble class >> installPackagesList [
|
|||||||
|
|
||||||
(FileLocator home / '.nimble' / 'packages_official.json') exists
|
(FileLocator home / '.nimble' / 'packages_official.json') exists
|
||||||
ifTrue: [ ^ self ].
|
ifTrue: [ ^ self ].
|
||||||
(Smalltalk os isUnix or: [ Smalltalk os isMacOS ])
|
|
||||||
ifTrue: [
|
|
||||||
OSSUnixSubprocess new
|
|
||||||
command: 'nimble';
|
|
||||||
arguments: #('refresh');
|
|
||||||
redirectStdout;
|
|
||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ].
|
|
||||||
].
|
|
||||||
Smalltalk os isWindows
|
Smalltalk os isWindows
|
||||||
ifTrue: [ ^ LibC resultOfCommand: 'nimble refresh' ]
|
ifTrue: [ ^ LibC resultOfCommand: 'nimble refresh' ].
|
||||||
|
^ (GtSubprocessWithInMemoryOutput new
|
||||||
|
shellCommand: 'nimble refresh';
|
||||||
|
runAndWait;
|
||||||
|
stdout)
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
@ -66,9 +62,8 @@ Nimble class >> installed [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Nimble class >> version [
|
Nimble class >> version [
|
||||||
|
|
||||||
OSSUnixSubprocess new
|
^ (GtSubprocessWithInMemoryOutput new
|
||||||
command: 'nimble';
|
shellCommand: 'nimble --version';
|
||||||
arguments: #('--version');
|
runAndWait;
|
||||||
redirectStdout;
|
stdout)
|
||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user