sfrest 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sfrest/domains.rb +17 -0
- data/lib/sfrest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 998c59d8ada04a4ea2af43ad2580cea0af6b16e1523868c060d0b6ba31c14ced
|
4
|
+
data.tar.gz: 225c6e090368da6504109a00a4a84d93bd0a8e7466a8fbed41c2bc9f48462f9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9253037e192f7e8632b8ea431d490260f706cebdbb3fa4580effae8fab5539dc5054e0b0992a2da2b6531e38382e59818a334881badf087bac6a656ea0ac8e8
|
7
|
+
data.tar.gz: 5391b5f7d359e84a51de65898b08170197d0733f009f1997b1fe3265f9aaef3c72af92b364f5e8ff09d0776d362fd38b6d387d6a033a636414146eba614bbabe
|
data/lib/sfrest/domains.rb
CHANGED
@@ -61,5 +61,22 @@ module SFRest
|
|
61
61
|
payload = { 'domain_name' => domain_name }.to_json
|
62
62
|
@conn.post("/api/v1/domains/#{node_id}/remove", payload)
|
63
63
|
end
|
64
|
+
|
65
|
+
# Get domain status
|
66
|
+
# @param [String] domain_name domain to remove. e.g. www.example.com
|
67
|
+
#
|
68
|
+
# @return [Hash] { "message" => "The domain is associated with the node.",
|
69
|
+
# "is_domain_associated" => TRUE,
|
70
|
+
# "node_id" => 123,
|
71
|
+
# "node_type" => "site",
|
72
|
+
# "time" => "2016-10-28T09:25:26+00:00",
|
73
|
+
# "stack_id" => 1,
|
74
|
+
# "domains" => array(
|
75
|
+
# "protected_domains" => array('site.example.sfdev.acquia-test.co'),
|
76
|
+
# "custom_domains" => array('www.abc.com/def', 'www.xyz.com'),
|
77
|
+
# ) }
|
78
|
+
def status(domain_name)
|
79
|
+
@conn.get("/api/v1/domains/status/#{domain_name}")
|
80
|
+
end
|
64
81
|
end
|
65
82
|
end
|
data/lib/sfrest/version.rb
CHANGED