Actualizar 'README.md'
Fixing instructions.
This commit is contained in:
parent
1cc6ab20e2
commit
17cd2882ba
26
README.md
26
README.md
@ -21,5 +21,29 @@ and how easy is to use them.
|
|||||||
To load this package open a Playground in GToolkit and execute:
|
To load this package open a Playground in GToolkit and execute:
|
||||||
|
|
||||||
```smalltalk
|
```smalltalk
|
||||||
"I load the configuration of this package using a external Gitea repository."
"While more Git independient providers are implemented in Monticello, I will use Iceberg
to download the repository and load it from a local directory"
| location localRepo repoName packageName |
"Sometimes repoName and packageName are different, following Pharo's conventions.
For example the repoName can be MyPackage, while packageName can be My-Package"
repoName := 'LepiterPlugins'.
packageName := 'LepiterPlugins'.
"Local and remote repo definition"
location := FileLocator localDirectory / 'iceberg' / 'Offray' / repoName.
location exists ifFalse: [
(IceRepositoryCreator new
location: location;
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/', repoName, '.git');
createRepository)
register
].
"Package loading"
localRepo := 'gitlocal://', location fullName.
Metacello new
repository: localRepo;
baseline: repoName;
load.
spec baseline: repoName with: [ spec repository: localRepo ].
spec package: packageName with: [ spec repository: localRepo ].
|
"I load the configuration of this package using a external Gitea repository."
|
||||||
|
"While more Git independient providers are implemented in Monticello, I will use Iceberg
|
||||||
|
to download the repository and load it from a local directory"
|
||||||
|
| location localRepo repoName packageName |
|
||||||
|
|
||||||
|
"Sometimes repoName and packageName are different, following Pharo's conventions.
|
||||||
|
For example the repoName can be MyPackage, while packageName can be My-Package"
|
||||||
|
repoName := 'LepiterPlugins'.
|
||||||
|
packageName := 'LepiterPlugins'.
|
||||||
|
|
||||||
|
"Local and remote repo definition"
|
||||||
|
location := FileLocator localDirectory / 'iceberg' / 'Offray' / repoName.
|
||||||
|
location exists ifFalse: [
|
||||||
|
(IceRepositoryCreator new
|
||||||
|
location: location;
|
||||||
|
remote: (IceGitRemote url: 'https://code.tupale.co/Offray/', repoName, '.git');
|
||||||
|
createRepository)
|
||||||
|
register
|
||||||
|
].
|
||||||
|
"Package loading"
|
||||||
|
localRepo := 'gitlocal://', location fullName.
|
||||||
|
Metacello new
|
||||||
|
repository: localRepo;
|
||||||
|
baseline: repoName;
|
||||||
|
load.
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user