Sha256: 850a615cd01a2c842ef83da106752e7786338271a2905f3ecdfb0ef71b86c239
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
module FeatureGateCleaner def self.clean(gate_name) matching_string = "FeatureGate::Manager.gate(\s*'#{gate_name}'\s*)" `grep -r -l "#{matching_string}" #{Dir.pwd}/app/views/ | while IFS= read -r file; do grep -v "#{matching_string}" "$file" > "$file".cleaned; mv "$file"{.cleaned,}; done` puts 'Cleaned!' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature_gate-0.1.5 | lib/feature_gate_cleaner.rb |