lib/pod_builder/command/clean.rb in pod-builder-2.0.0.beta.29 vs lib/pod_builder/command/clean.rb in pod-builder-2.0.0.beta.30

- old
+ new

@@ -29,23 +29,10 @@ puts "Cleanining up `#{basename}`, no longer found among dependencies".blue PodBuilder::safe_rm_rf(path) end end - splitted_specs = buildable_items.select { |t| Configuration.subspecs_to_split.include?(t.name) } - splitted_specs.each do |splitted_spec| - root_name = splitted_spec.root_name - - Dir.glob(PodBuilder::prebuiltpath("#{root_name}/Subspecs/*")).each do |path| - basename = File.basename(path) - unless splitted_specs.map(&:podspec_name).include?(basename) - puts "Cleanining up `#{root_name}/#{basename}`, no longer found among dependencies".blue - PodBuilder::safe_rm_rf(path) - end - end - end - puts "Cleaning dSYM folder".yellow module_names = buildable_items.map(&:module_name).uniq Dir.glob(File.join(PodBuilder::dsympath, "**/*.dSYM")).each do |path| dsym_basename = File.basename(path, ".*") dsym_basename.gsub!(/\.framework$/, "") @@ -76,10 +63,10 @@ paths_to_delete.push(path) end paths_to_delete.flatten.each do |path| confirm = ask("#{path} unused.\nDelete it? [Y/N] ") { |yn| yn.limit = 1, yn.validate = /[yn]/i } - if confirm.downcase == 'y' + if confirm.downcase == 'y' || OPTIONS.has_key?(:no_stdin_available) PodBuilder::safe_rm_rf(path) end end end end