Sha256: 74ab802889a6fd3b4193c197851fd932c6090d2e6c32c640c05f756c80a31b2e

Contents?: true

Size: 878 Bytes

Versions: 17

Compression:

Stored size: 878 Bytes

Contents

require_relative "souls/index"
require_relative "souls/cli"
require "active_support/core_ext/string/inflections"
require "date"
require "json"
require "net/http"
require "paint"
require "whirly"
require "tty-prompt"
require "thor"
require "resolv"
require "retryable"
require "google/cloud/pubsub"

module SOULs
  extend SOULs::Utils
  class Error < StandardError; end
  class << self
    attr_accessor :configuration

    def configure
      self.configuration ||= Configuration.new
      yield(configuration)
    end
  end

  class Configuration
    attr_accessor :app, :strain, :project_id, :region, :endpoint, :fixed_gems, :workers

    def initialize
      @app = nil
      @project_id = nil
      @region = nil
      @endpoint = nil
      @strain = nil
      @fixed_gems = nil
      @workers = nil
    end

    def instance_name
      "souls-#{@app}-db"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
souls-4.0.0 lib/souls.rb
souls-3.0.8 lib/souls.rb
souls-3.0.7 lib/souls.rb
souls-3.0.6 lib/souls.rb
souls-3.0.5 lib/souls.rb
souls-3.0.4 lib/souls.rb
souls-3.0.3 lib/souls.rb
souls-3.0.2 lib/souls.rb
souls-3.0.1 lib/souls.rb
souls-3.0.0 lib/souls.rb
souls-2.0.4 lib/souls.rb
souls-2.0.3 lib/souls.rb
souls-2.0.2 lib/souls.rb
souls-2.0.1 lib/souls.rb
souls-2.0.0 lib/souls.rb
souls-1.23.0 lib/souls.rb
souls-1.22.0 lib/souls.rb