You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nginx_site resource defines the method config_file inside action_class. This method would be very useful to be used like:
site = nginx_site 'service-discovery' do
conf_dir ::File.join(config.nginx_dir, 'sites-available')
cookbook 'dsi-consul-servers'
template 'service-discovery.conf.erb'
variables(
...
)
action :create
end
link site.config_file do # HERE
to "../sites-enabled/#{site.name}"
end
To allow this usage the method should be defined outside of action_class. I can make a PR if this is something that would be merged.
The text was updated successfully, but these errors were encountered:
The
nginx_site
resource defines the methodconfig_file
insideaction_class
. This method would be very useful to be used like:To allow this usage the method should be defined outside of
action_class
. I can make a PR if this is something that would be merged.The text was updated successfully, but these errors were encountered: