Sha256: a0fff090729641e68f159c89d0705d972e3c71f8a023579d1980701b719d6d5e

Contents?: true

Size: 312 Bytes

Versions: 30

Compression:

Stored size: 312 Bytes

Contents

module Terraspace::Cloud::Api::Concern
  module Errors
    def errors?(result)
      result.is_a?(Hash) && result.key?("errors")
    end

    def error_message(result)
      $stderr.puts "ERROR: #{result["errors"]}"
      $stderr.puts "Your current settings. org: #{@org} project: #{@project}"
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.16 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.15 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.14 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.13 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.12 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.11 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.10 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.9 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.8 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.7 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.6 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.5 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.4 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.3 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.2 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.1 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.2.0 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.1.7 lib/terraspace/cloud/api/concern/errors.rb
terraspace-2.1.6 lib/terraspace/cloud/api/concern/errors.rb