Sha256: 3bbaed22cb4735a02949bd7fc5168cfbca359b0a399c4e6b169039db8eb4bd4e

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

require 'json'
require 'date'
require 'digest'
require 'net/http'
require 'fileutils'
require 'json/ext'
require 'open-uri'
require 'rest_client'
require 'zlib'
require 'stringio'
require 'yaml'
require "optparse"
require 'open4'
require "ey_enzyme"

lib_dir = File.expand_path(__FILE__ + '/../ey-flex')

module EY
  def self.notify_snapshot_error(error)
    enzyme_api.notify_error("snapshot", error)
  end

  def self.notify_backup_error(error)
    enzyme_api.notify_error("backup", error)
  end

  def self.enzyme_api
    @enzyme_api ||= EY::Enzyme::API.new(
      enzyme_config[:api],
      enzyme_config[:instance_id],
      enzyme_config[:token],
      EY::Backup.logger
    )
  end

  def self.enzyme_config
    @enzyme_config ||= YAML.load_file("/etc/engineyard/dracul.yml")
  end

  module Flex
    class Error < StandardError; end
  end
  module CloudServer; end
end

require lib_dir + '/bucket_minder'
require lib_dir + '/ey-api'
require lib_dir + '/snapshot_minder'
require lib_dir + '/../ey_cloud_server/version'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ey_cloud_server-1.4.58 lib/ey-flex.rb
ey_cloud_server-1.4.54 lib/ey-flex.rb
ey_cloud_server-1.4.51 lib/ey-flex.rb
ey_cloud_server-1.4.50 lib/ey-flex.rb
ey_cloud_server-1.4.49 lib/ey-flex.rb