Sha256: ee2522d031dcaed55b830ecef6e6f44b1709f8c001b755ba33a44b4945b3038a

Contents?: true

Size: 448 Bytes

Versions: 52

Compression:

Stored size: 448 Bytes

Contents

desc 'remove-executable-flags', 'Remove executable-flags from files that should not be executable'
def remove_executable_flags
  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
  ]
  for pattern in patterns
    note pattern
    `find . -name "#{pattern}" -exec chmod -x {} ';'`
  end
  puts 'Done.'
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/commands/remove_executable_flags.rb
geordi-2.12.2 lib/geordi/commands/remove_executable_flags.rb
geordi-2.12.1 lib/geordi/commands/remove_executable_flags.rb
geordi-2.12.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.11.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.10.1 lib/geordi/commands/remove_executable_flags.rb
geordi-2.10.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.9.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.8.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.7.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.6.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.5.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.4.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.3.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.2.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.1.0 lib/geordi/commands/remove_executable_flags.rb
geordi-2.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-1.10.0 lib/geordi/commands/remove_executable_flags.rb
geordi-1.9.1 lib/geordi/commands/remove_executable_flags.rb
geordi-1.9.0 lib/geordi/commands/remove_executable_flags.rb