Skip to content

Commit 8023893

Browse files
committed
adding preferences
1 parent 9415daa commit 8023893

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

Chapters/IcebergIntro/FirstConfiguration.pillar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
!!! Configure your project nicely
22
@sec:Configure
33
Versioning code is just the first part of making sure that you and others can reload your code.
4-
Here, we describe how to define a Baseline, a project map that you will use to define dependencies within your project and dependencies to other projects. We also show how to add a good ==.gitignore== file.
4+
Here, we describe how to define a Baseline, a project map that you will use to define dependencies within your project and dependencies to other projects.
55

66
In the next chapter, we will show how to configure your project to get more out of the services offered within the Github ecosystem, such as Github Actions to automatically execute your tests.
77

Chapters/IcebergIntro/StartedWithIceberg.pillar

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,54 @@ Now you can push your changes and versions to the remote repository using the ""
184184

185185
+Once you pushed you changes to the remote repository.>file://figures/S15-PushedFromReport.png|width=75|label=PushedFromReport+
186186

187-
!!!Configuring your project
187+
!!!Configuring Pharo to commit in HTTPS/SSH
188188
@sec:Configure
189189

190-
Versioning code is just the first part of making sure that you and other developers can reload your code. We will now describe how to define a ''Baseline'': a project map that you will use to define the dependencies within your project and its dependencies on other projects.
190+
Versioning code is just the first part of making sure that you and other developers can reload your code. We will now describe how to configure Pharo to automatically connect to be able to publish to github. In the next section we will describe how to create a baseline (a kind of map) to reload your application.
191+
192+
193+
With recent version of github, you should use a token to connect using HTTPS to be able to commit to your repository.
194+
Now you can configure Pharo to store your token as well your github account authentification.
195+
In addition you can configure Pharo to point to your private and public SSH key as follows:
196+
197+
[[[
198+
StartupPreferencesLoader default executeAtomicItems: {
199+
StartupAction
200+
name: 'Logo'
201+
code: [ PolymorphSystemSettings showDesktopLogo: false] .
202+
StartupAction
203+
name: 'Git Settings'
204+
code: [
205+
Iceberg enableMetacelloIntegration: true.
206+
IceCredentialStore current
207+
storeCredential: (IcePlaintextCredentials new
208+
username: 'xxxxxJohnDoe';
209+
password: 'xxxPassOfJohnDoe';
210+
host: 'github.com';
211+
yourself).
212+
IceCredentialsProvider sshCredentials
213+
username: 'git';
214+
publicKey: 'Path to your public rsa file (public key)';
215+
privateKey: 'Path to your private rsa file (private key)'.
216+
IceCredentialStore current
217+
storeCredential: (IceTokenCredentials new
218+
username: 'xxxxxJohnDoe';
219+
token: 'magictoken here ';
220+
yourself)
221+
forHostname: 'github.com'.
222+
].
223+
}
224+
]]]
225+
226+
227+
You should place this file in the preference folder that depends on your OS.
228+
You can find this place by using the ==Startup== menu. Note that you can configure this
229+
for all or one specific version of Pharo.
230+
231+
232+
!!! Defining a ==BaselineOf==
233+
We describe now how to define a ''Baseline'': a project map that you will use to define the dependencies within your project and its dependencies on other projects.
191234

192-
!!!!Defining a ==BaselineOf==
193235

194236
A Baseline is a description of a project architecture. You express the dependencies between your packages and other projects so that all the dependent projects are loaded without the user having to understand them or the links between them.
195237

0 commit comments

Comments
 (0)