flow-iron 0.4.13

Infrastructure-as-code CLI — deploy Docker Compose apps with Caddy reverse proxy and Cloudflare DNS
Documentation
1
2
3
4
5
6
7
8
9
10
11
#![allow(clippy::unwrap_used)]

use iron::cloudflare::extract_zone;

#[test]
fn test_extract_zone() {
    assert_eq!(extract_zone("flow.industries"), "flow.industries");
    assert_eq!(extract_zone("id.flow.industries"), "flow.industries");
    assert_eq!(extract_zone("flow.talk"), "flow.talk");
    assert_eq!(extract_zone("eu.play.flow.game"), "flow.game");
}