Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source :auto of template and remote_file resource. #94

Closed
ryotarai opened this issue Mar 12, 2015 · 0 comments
Closed

source :auto of template and remote_file resource. #94

ryotarai opened this issue Mar 12, 2015 · 0 comments
Labels

Comments

@ryotarai
Copy link
Member

remote_file

remote_file "/etc/nginx/conf.d/itamae.conf" do
  source :auto # This is default
end

Itamae will search files/etc/nginx/conf.d/itamae.conf, files/nginx/conf.d/itamae.conf, files/conf.d/itamae.conf and files/itamae.conf under the directory where the recipe exists and use the file found first.

template

template "/etc/nginx/conf.d/itamae.conf" do
  source :auto # This is default
end

Itamae will search templates/etc/nginx/conf.d/itamae.conf.erb, templates/nginx/conf.d/itamae.conf.erb, templates/conf.d/itamae.conf.erb and templates/itamae.conf.erb under the directory where the recipe exists and use the file found first.

@ryotarai ryotarai added the idea label Mar 12, 2015
ryotarai added a commit that referenced this issue Mar 13, 2015
It will find a source file automatically.
#94
ryotarai referenced this issue Mar 13, 2015
`source :auto` of remote_file and template resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant