Sha256: be8347c05d97ac5b23c5090914a0775c68f92785699fece73484c80821d74aff
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
require 'neutron' module Neutron def self.clean(*files) files << Neutron::PkgStatus::FNAME files.map! do |file| File.expand_path(file) end files.each do |file| if File.exist?(file) Neutron.execute( "rm -r #{file}", must_success: true ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
neutron-0.2.1 | lib/neutron/clean.rb |
neutron-0.2.0 | lib/neutron/clean.rb |