lib/phrase/tool_config.rb in phrase-0.0.1 vs lib/phrase/tool_config.rb in phrase-0.0.2
- old
+ new
@@ -21,11 +21,23 @@
def secret=(new_secret)
config["secret"] = new_secret
save_config!
end
- def api_endpoint
- ENV.fetch("PHRASE_API_ENDPOINT", "https://phraseapp.com/api/v1")
+ def api_port
+ ENV.fetch("PHRASE_API_PORT", "443")
+ end
+
+ def api_host
+ ENV.fetch("PHRASE_API_HOST", "phraseapp.com")
+ end
+
+ def api_path_prefix
+ "/api/v1"
+ end
+
+ def api_use_ssl
+ ENV.fetch("PHRASE_API_USE_SSL", "1")
end
private
def config
@config ||= {}