Sha256: 921bbe908354e64bda6c6678e9aa4864f994222e2f0f8625383a02bb28a6537e
Contents?: true
Size: 530 Bytes
Versions: 6
Compression:
Stored size: 530 Bytes
Contents
desc 'remove-executable-flags', 'Remove executable-flags from files that should not be executable' def remove_executable_flags Interaction.announce 'Removing executable-flags' patterns = %w[ *.rb *.html *.erb *.haml *.yml *.css *.sass *.rake *.png *.jpg *.gif *.pdf *.txt *.rdoc *.feature Rakefile VERSION README Capfile ] patterns.each do |pattern| Interaction.note pattern `find . -name "#{pattern}" -exec chmod -x {} ';'` end Interaction.success 'Done.' Hint.did_you_know [ :clean, ] end
Version data entries
6 entries across 6 versions & 1 rubygems