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

Fix to use specinfra to avoid calling direct command. #193

Merged

Conversation

yuichiro-naito
Copy link
Contributor

For FreeBSD, 'chown --reference' and 'chmod --reference' are not supported.
Itamae should use the interfaces which specinfra supports.

For FreeBSD, 'chown --reference' and 'chmod --reference' are not supported.
Itamae should use the interfaces which specinfra supports.
@@ -94,13 +94,17 @@ def action_edit(options)
if attributes.mode
run_specinfra(:change_file_mode, @temppath, attributes.mode)
else
run_command(['chmod', '--reference', attributes.path, @temppath])
mode=run_specinfra(:get_file_mode, attributes.path).stdout.chomp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you insert spaces like mode = run_specinfra?

@yuichiro-naito
Copy link
Contributor Author

@ryotarai
I have fixed spaces around '='.
Thank you.

ryotarai added a commit that referenced this pull request Mar 6, 2016
Fix to use specinfra to avoid calling direct command.
@ryotarai ryotarai merged commit b5f4150 into itamae-kitchen:master Mar 6, 2016
@ryotarai
Copy link
Member

ryotarai commented Mar 6, 2016

released v1.9.4

@yuichiro-naito yuichiro-naito deleted the fix_resource_for_freebsd branch July 13, 2017 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants