lib/ninny/commands/create_dated_branch.rb
# Public: If necessary, and if user opts to, delete old branches of its type
If necessary, and if user opts to, delete old branches of its type
If necessary and if user opts to delete old branches of its type
def delete_old_branches
        return unless extra_branches.any?
        should_delete = should_delete_old_branches || prompt.yes?(
          "Do you want to delete the old #{branch_type} branch(es)? (#{extra_branches.join(', ')})"
        )
        return unless should_delete
        extra_branches.each do |extra|
          Ninny.git.delete_branch(extra)
        end
      end
def delete_old_branches return unless extra_branches . any? should_delete = should_delete_old_branches || prompt . yes? ( "Do you want to delete the old #{branch_type} branch(es)? (#{extra_branches.join(', ')})" ) return unless should_delete extra_branches . each do | extra | Ninny . git . delete_branch ( extra ) end end
Public: If necessary, and if user opts to, delete old branches of its type
Public : If necessary and if user opts to delete old branches of its type