Sha256: f4b4dd8dc539099288e5f1ebacafc049b25d4c3a0c20657e7f7c8e5bd1442283

Contents?: true

Size: 491 Bytes

Versions: 17

Compression:

Stored size: 491 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.'
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
geordi-9.5.1 lib/geordi/commands/remove_executable_flags.rb
geordi-9.5.0 lib/geordi/commands/remove_executable_flags.rb
geordi-9.4.1 lib/geordi/commands/remove_executable_flags.rb
geordi-9.4.0 lib/geordi/commands/remove_executable_flags.rb
geordi-9.3.1 lib/geordi/commands/remove_executable_flags.rb
geordi-9.3.0 lib/geordi/commands/remove_executable_flags.rb
geordi-9.2.0 lib/geordi/commands/remove_executable_flags.rb
geordi-9.1.0 lib/geordi/commands/remove_executable_flags.rb
geordi-9.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-8.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-7.0.2 lib/geordi/commands/remove_executable_flags.rb
geordi-7.0.1 lib/geordi/commands/remove_executable_flags.rb
geordi-7.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-6.1.0 lib/geordi/commands/remove_executable_flags.rb
geordi-6.0.1 lib/geordi/commands/remove_executable_flags.rb
geordi-6.0.0 lib/geordi/commands/remove_executable_flags.rb
geordi-6.0.0.pre.rc1 lib/geordi/commands/remove_executable_flags.rb