我有自己的gem,它为我简化了部署,因为服务器有一些配置。
结构如下:
- .
- ..
- lib
- capistrano
- foo
- common.rb
- foo.rb
foo.rb:
require "capistrano"
require "capistrano/ext/multistage"
require "capistrano/foo/common"
公共.rb:
def _cset(name, *args, &block)
unless exists?(name)
set(name, *args, &block)
end
end
def _baz(param)
end
我好像不能打电话
_baz
在我的部署文件中,同时我可以调用
_cset
很好。我该怎么做
_巴兹
可在我的部署文件中调用?
例外情况:
capistrano--2.12.0/lib/capistrano/configuration/variables.rb:122:在“method_missing_with_variables”中:#的未定义方法“_symlink”(NoMethodError)