Hi all,
I have the code of an app in a FTP repo which has username/password. I am doing a ConfigurationOfMyApp now and I would need to define in the baseline something like
spec repository: 'ftp.mydomainapp.com ...etc'. I know I have a similar method for also specifying the username/pass. But I don't want that because it means storing the username/pass in the ConfigurationOf code.
So....how can I manage this with metacello? the only thing I found (which I am not sure if it works) is to use repositoryOverride so when I am about to load my project I do a #repositoryOverride: passing as argument a FTP with my username/password.
What do you think? best, |
Mariano,
I would think that you'd treat the FTP repository like the HTTP repository, i.e., if you add the repository in the MetacelloBrowser and set the username/password there, then Metacello should honor that (like it does for the HTTP repository) ... so instead of adding some sort of repository override to the load script, simply create the FTP repository with username/password inline in your load script. Dale ----- Original Message ----- | From: "Mariano Martinez Peck" <[hidden email]> | To: [hidden email], "Pharo Development" <[hidden email]> | Sent: Monday, April 15, 2013 11:11:09 AM | Subject: [Metacello] FTP repo without storing username/pass in ConfigurationOf | | Hi all, | | I have the code of an app in a FTP repo which has username/password. | I am doing a ConfigurationOfMyApp now and I would need to define in the | baseline something like | | spec repository: 'ftp.mydomainapp.com ...etc'. | | I know I have a similar method for also specifying the username/pass. But I | don't want that because it means storing the username/pass in the | ConfigurationOf code. | | So....how can I manage this with metacello? the only thing I found (which I | am not sure if it works) is to use repositoryOverride so when I am about to | load my project I do a #repositoryOverride: passing as argument a FTP with | my username/password. | | What do you think? | | best, | | -- | Mariano | http://marianopeck.wordpress.com | | -- | You received this message because you are subscribed to the Google Groups | "Metacello" group. | To unsubscribe from this group and stop receiving emails from it, send an | email to [hidden email]. | For more options, visit https://groups.google.com/groups/opt_out. | | | |
On Tue, Apr 16, 2013 at 6:13 PM, Dale Henrichs <[hidden email]> wrote: Mariano, OK. The http repository does not expose user names and works just fine picking up the image based instance with credentials defined so I would expect the ftp repository to behave similarly.
+9999
+1
Yes, this is a very good idea. I will open an issue in the bug tracker. Anyone has an objection? Cheers,
Mariano http://marianopeck.wordpress.com |
Free forum by Nabble | Edit this page |