Sha256: cb060b7c9a3ea795d4021d0527e8be15caad8daf568230f47255f408ed798177

Contents?: true

Size: 475 Bytes

Versions: 20

Compression:

Stored size: 475 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
  puts 'Done.'
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geordi-5.4.0 lib/geordi/commands/remove_executable_flags.rb
geordi-5.3.0 lib/geordi/commands/remove_executable_flags.rb
geordi-5.2.4 lib/geordi/commands/remove_executable_flags.rb
geordi-5.2.3 lib/geordi/commands/remove_executable_flags.rb
geordi-5.2.2 lib/geordi/commands/remove_executable_flags.rb
geordi-5.2.1 lib/geordi/commands/remove_executable_flags.rb
geordi-5.2.0 lib/geordi/commands/remove_executable_flags.rb
geordi-5.1.0 lib/geordi/commands/remove_executable_flags.rb
geordi-5.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-4.2.1 lib/geordi/commands/remove_executable_flags.rb
geordi-4.2.0 lib/geordi/commands/remove_executable_flags.rb
geordi-4.1.1 lib/geordi/commands/remove_executable_flags.rb
geordi-4.1.0 lib/geordi/commands/remove_executable_flags.rb
geordi-4.0.1 lib/geordi/commands/remove_executable_flags.rb
geordi-4.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-3.2.0 lib/geordi/commands/remove_executable_flags.rb
geordi-3.1.0 lib/geordi/commands/remove_executable_flags.rb
geordi-3.0.3 lib/geordi/commands/remove_executable_flags.rb
geordi-3.0.2 lib/geordi/commands/remove_executable_flags.rb
geordi-3.0.1 lib/geordi/commands/remove_executable_flags.rb