一次保存多个蒙蒂塞洛包

发布于 2024-12-15 00:11:17 字数 283 浏览 3 评论 0原文

我正在与 Pharo Smalltalk 合作。假设您要将自己的包组保存到本地存储库中,您知道您的包带有“MyPrefix”前缀。这样做的正确信息是什么?在代码中:

| myPkgs |
myPkgs := MCPackage allInstances select: [: mcPkg | mcPkg name beginsWith: 'MyPrefix' ].
myPkgs do: [ : myPkg | myPkg ??? ].

为基于 Web 的存储库编写脚本会不会太困难?

I am working with Pharo Smalltalk. Suppose you want to save your own group of packages into a local repository, you know that your packages are prefixed with "MyPrefix". What's the right message to do it? In code:

| myPkgs |
myPkgs := MCPackage allInstances select: [: mcPkg | mcPkg name beginsWith: 'MyPrefix' ].
myPkgs do: [ : myPkg | myPkg ??? ].

It would be too difficult to script that one for a web based repository?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

晨曦÷微暖 2024-12-22 00:11:17
packages := Gofer new allResolved
        collect: [ :each | each packageName ] as: Set.
packages := packages select: [ :e | e beginsWith: 'Prefix' ].

gofer := Gofer new
    disablePackageCache;
    directory: '/path/to/repo'.
packages do: [ :p | gofer package: p ].
gofer commit: ''.
packages := Gofer new allResolved
        collect: [ :each | each packageName ] as: Set.
packages := packages select: [ :e | e beginsWith: 'Prefix' ].

gofer := Gofer new
    disablePackageCache;
    directory: '/path/to/repo'.
packages do: [ :p | gofer package: p ].
gofer commit: ''.
饮惑 2024-12-22 00:11:17

与加载或更新一组软件包的方式相同:

Gofer new
    squeaksource: 'MyProject';
    package: 'MyPrefix-Core';
    package: 'MyPrefix-Tests';
    commit

您可以在此博客文章中找到更多信息:Gofer — 蒙蒂塞洛和软件包组

The same way as you load or update a group of packages:

Gofer new
    squeaksource: 'MyProject';
    package: 'MyPrefix-Core';
    package: 'MyPrefix-Tests';
    commit

More information you find in this blog post: Gofer — Monticello and Groups of Packages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文