(target)
| 252 | end |
| 253 | |
| 254 | def split_target(target) |
| 255 | components = target.split("-") |
| 256 | if components[0, 2] == ["amazon", "linux"] |
| 257 | components[0, 2] = components[0, 2].join("-") |
| 258 | elsif components.values_at(0, 2) == ["centos", "stream"] |
| 259 | components[1, 2] = components[1, 2].join("-") |
| 260 | end |
| 261 | if components.size >= 3 |
| 262 | components[2..-1] = components[2..-1].join("-") |
| 263 | end |
| 264 | components |
| 265 | end |
| 266 | |
| 267 | def enable_apt? |
| 268 | true |