Skip to content

Commit

Permalink
Also scan MCDirectoryRepositories for local repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Jun 16, 2024
1 parent 99bdde6 commit 174f246
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ as yet unclassified
scanFor: aString ifAbsent: aBlock
| repository |
repository := MCRepositoryGroup default repositories
detect: [:each |
(each isKindOf: MCFilesystemFetchOnlyRepository)
and: [each projectPath endsWith: '/', aString]]
detect: [:each | (each squotDirectoryForProjectNamed: aString) notNil]
ifNone: [^ aBlock value].
^ self newWithName: aString on: repository
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
accessing
directory
self directory: (self repository
projectDirectoryFrom: self repository projectPath
version: self repository projectVersion) asFSReference.
self directory: (self repository squotDirectoryForProjectNamed: self name).
^ super directory
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"class" : {
"newWithName:on:" : "mad 6/12/2024 15:49",
"scanFor:ifAbsent:" : "mad 6/12/2024 15:49" },
"scanFor:ifAbsent:" : "mad 6/16/2024 21:58" },
"instance" : {
"directory" : "mad 6/12/2024 16:03",
"directory" : "mad 6/16/2024 21:58",
"repository" : "mad 6/12/2024 15:53",
"repository:" : "mad 6/12/2024 15:53" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*Squot-Mapper-Assets
squotDirectoryForProjectNamed: aString
| reference |
reference := SquotPathUtilities ancestorOf: self directory asFSReference that: [:ancestor |
(SquotPathUtilities resolve: SquotMappersMapper path withRootAt: ancestor) exists].
^ (reference ifNil: [^ nil]) basename = aString
ifTrue: [reference]
ifFalse: [nil]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"class" : {
},
"instance" : {
"squotDirectoryForProjectNamed:" : "mad 6/16/2024 22:00" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
"name" : "MCDirectoryRepository" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*Squot-Mapper-Assets
squotDirectoryForProjectNamed: aString
(self projectPath endsWith: '/', aString) ifFalse: [^ nil].
^ (self
projectDirectoryFrom: self projectPath
version: self projectVersion) asFSReference
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"class" : {
},
"instance" : {
"squotDirectoryForProjectNamed:" : "mad 6/16/2024 21:57" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
"name" : "MCFilesystemFetchOnlyRepository" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Squot-Mapper-Assets
squotDirectoryForProjectNamed: aString
^ nil
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"class" : {
},
"instance" : {
"squotDirectoryForProjectNamed:" : "mad 6/16/2024 21:43" } }
2 changes: 2 additions & 0 deletions src/Squot.package/MCRepository.extension/properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
"name" : "MCRepository" }

0 comments on commit 174f246

Please sign in to comment.