lib/buildbox/configuration.rb in buildbox-0.3.9.1 vs lib/buildbox/configuration.rb in buildbox-0.4
- old
+ new
@@ -16,17 +16,10 @@
def api_key
ENV['BUILDBOX_API_KEY'] || self[:api_key]
end
def api_endpoint
- ENV['BUILDBOX_API_ENDPOINT'] || self[:api_endpoint] || "https://api.buildbox.io/v1"
- end
-
- def check
- unless api_key
- puts "No api_key set. You can set it with\nbuildbox auth:login [api_key]"
- exit 1
- end
+ ENV['BUILDBOX_API_ENDPOINT'] || self[:api_endpoint] || "https://agent.buildbox.io/v1"
end
def update(attributes)
attributes.each_pair { |key, value| self[key] = value }
save