Skip to content

Commit

Permalink
Merge pull request #50 from zweidenker/fix-initialization-from-cinic
Browse files Browse the repository at this point in the history
fix initialization from cinic
  • Loading branch information
noha authored Jun 23, 2020
2 parents 78e9f07 + ce55e0f commit e10dfa0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
8 changes: 7 additions & 1 deletion source/SnapDump-Core/SDHTTPStore.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SDHTTPStore class >> storeName [

{ #category : #initialization }
SDHTTPStore >> applyConfiguration: aConfig [
uri := aConfig uri.
self uri: aConfig uri.
username := aConfig username.
password := aConfig password.

Expand Down Expand Up @@ -175,6 +175,12 @@ SDHTTPStore >> snapshotsOfException: anException [
ifFalse: [ NotFound signal ]
]

{ #category : #accessing }
SDHTTPStore >> uri [

^ uri
]

{ #category : #accessing }
SDHTTPStore >> uri: anUri [
uri := anUri asZnUrl / SDSnapshot apiVersion
Expand Down
13 changes: 11 additions & 2 deletions source/SnapDump-Core/SnapDump.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Class {

{ #category : #'as yet unclassified' }
SnapDump class >> applyConfiguration: aConfig [
self beOfType: aConfig type.

self setCurrent: (self withType: aConfig type) new.
self current applyConfiguration: aConfig
]

Expand All @@ -27,7 +28,9 @@ SnapDump class >> configuration [
<cinicStep>
^ {
#section -> #SnapDump.
#action -> [ :config | self applyConfiguration: config ] }
#action -> [ :config |

self applyConfiguration: config ] }
]

{ #category : #accessing }
Expand Down Expand Up @@ -79,8 +82,14 @@ SnapDump class >> uri: aUri username: aUsername password: aPassword [
yourself
]

{ #category : #accessing }
SnapDump class >> withType: aString [
^ self allSubclasses detect: [ :each | each type = aString ]
]

{ #category : #initialization }
SnapDump >> applyConfiguration: aConfig [

store := (SDStore withName: aConfig store) new.
store applyConfiguration: aConfig
]
Expand Down
10 changes: 0 additions & 10 deletions source/SnapDump-Handler/SDBasicHTTPStore.class.st

This file was deleted.

0 comments on commit e10dfa0

Please sign in to comment.