Method: Terraspace::Cloud::Upload::Tidy#get_removals
- Defined in:
- lib/terraspace/cloud/upload/tidy.rb
#get_removals(file) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/terraspace/cloud/upload/tidy.rb', line 22 def get_removals(file) path = file return [] unless File.exist?(path) removal = File.read(path).split("\n") removal.map {|i| i.strip}.reject {|i| i =~ /^#/ || i.empty?} end |