Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法为 capistrano 制定自定义部署策略,但不必将其捆绑为 gem?我已经搜索和搜索,但每个人的示例都被打包为宝石。
我只想将它粘贴在包含路径中并在 Capfile 中要求它。
像这样的东西应该工作:
require 'capistrano/recipes/deploy/strategy/remote_cache' class InsaneStrategy < Capistrano::Deploy::Strategy::RemoteCache def copy_repository_cache do_something() end end set :strategy, InsaneStrategy.new(self)