Skip to content

Instantly share code, notes, and snippets.

@turingmachine
Created April 17, 2013 14:50
Show Gist options
  • Select an option

  • Save turingmachine/5404925 to your computer and use it in GitHub Desktop.

Select an option

Save turingmachine/5404925 to your computer and use it in GitHub Desktop.
<%-
def flag(option, value)
if value.is_a(Boolean)
return '--' + (value ? 'enable' : 'disable') + option
else
return "--#{option} #{value}"
end
end
-%>
authconfig \
<% scope.to_hash.each do |option, value| -%>
<%= flag(option, value) %> \
<% end -%>
--updateall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment