Sha256: 2dc940964b926437552f06b042e69fb43d1fa100eea838de69677616fcf3f0c6
Contents?: true
Size: 447 Bytes
Versions: 3
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true def do_client DropletKit::Client.new(access_token: access_token) end def access_token credentials_file["digital_ocean_token"] end def credentials_file YAML.load(File.read(File.expand_path("~/.ocean_kit/credentials.yml"))) end def check_credentials_file if credentials_file.nil? puts pastel.red.bold("Error: credentials file not found. Please run `ocean_kit config setup` first.") exit 1 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ocean_kit-0.1.8 | lib/ocean_kit/helpers/client.rb |
ocean_kit-0.1.7 | lib/ocean_kit/helpers/client.rb |
ocean_kit-0.1.6 | lib/ocean_kit/helpers/client.rb |