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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8797017f9549e9b2eabc708b1209ddd08f6ed4caa4cc0953a7e58e58704ecfc0
4
- data.tar.gz: 88028c1362332f1f7dc9552bf827adfd2e16f8bd4d3552e7c7318d9a89f761b6
3
+ metadata.gz: 998c59d8ada04a4ea2af43ad2580cea0af6b16e1523868c060d0b6ba31c14ced
4
+ data.tar.gz: 225c6e090368da6504109a00a4a84d93bd0a8e7466a8fbed41c2bc9f48462f9f
5
5
  SHA512:
6
- metadata.gz: c94f1e1e73567ceba9aad7b79d067a11943cf73af6265938fc74ecb5103865f8417a03b682bb441e487980e42838ae0db97026ada1dbe7783e711976eccffe7b
7
- data.tar.gz: 0b6fcd19144d271333dc8be53a89ed4d7454e3f15f3e87d0e13bff1ae44dddde2150c0894dae684d969a8aa8c853c586852199b116db9649c26e8bdeba67a37b
6
+ metadata.gz: f9253037e192f7e8632b8ea431d490260f706cebdbb3fa4580effae8fab5539dc5054e0b0992a2da2b6531e38382e59818a334881badf087bac6a656ea0ac8e8
7
+ data.tar.gz: 5391b5f7d359e84a51de65898b08170197d0733f009f1997b1fe3265f9aaef3c72af92b364f5e8ff09d0776d362fd38b6d387d6a033a636414146eba614bbabe
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module SFRest
4
4
  # Just tracks the version of sfrest.
5
- VERSION = '0.0.31'
5
+ VERSION = '0.0.32'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sfrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - ACSF Engineering