Sha256: de8597c89205869e7c8717547124ef2aaacf898614ee890ac9e7ce3c4f601abf

Contents?: true

Size: 1.04 KB

Versions: 20

Compression:

Stored size: 1.04 KB

Contents

require_relative "souls/index"
require_relative "souls/cli"
require "active_support/core_ext/string/inflections"
require "date"
require "json"
require "fileutils"
require "net/http"
require "paint"
require "whirly"
require "tty-prompt"
require "thor"

module Souls
  extend Souls::Utils
  SOULS_METHODS = %w[
    model
    query
    mutation
    type
    resolver
    policy
    rspec_factory
    rspec_model
    rspec_query
    rspec_mutation
    rspec_resolver
    rspec_policy
  ].freeze
  public_constant :SOULS_METHODS
  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

20 entries across 20 versions & 1 rubygems

Version Path
souls-1.4.12 lib/souls.rb
souls-1.4.11 lib/souls.rb
souls-1.4.10 lib/souls.rb
souls-1.4.9 lib/souls.rb
souls-1.4.8 lib/souls.rb
souls-1.4.7 lib/souls.rb
souls-1.4.6 lib/souls.rb
souls-1.4.5 lib/souls.rb
souls-1.4.4 lib/souls.rb
souls-1.4.3 lib/souls.rb
souls-1.4.2 lib/souls.rb
souls-1.4.1 lib/souls.rb
souls-1.4.0 lib/souls.rb
souls-1.3.8 lib/souls.rb
souls-1.3.7 lib/souls.rb
souls-1.3.6 lib/souls.rb
souls-1.3.5 lib/souls.rb
souls-1.3.4 lib/souls.rb
souls-1.3.3 lib/souls.rb
souls-1.3.2 lib/souls.rb