2017-08-08 92 views

回答

1

把他們放進」的模塊中libraries/default.rb下:

module MyCookbook 
    BASE_PATH = '/foo' 
end 

# And then in the resource 
property(:path, default: MyCookbook::BASE_PATH) 

或諸如此類。