Sha256: 6518be8271c6195b5ef1b23fe09ea9df41a62ba8b30b92b838b45d537325dd61
Contents?: true
Size: 1.25 KB
Versions: 11
Compression:
Stored size: 1.25 KB
Contents
require_relative "souls/version" require "active_support/core_ext/string/inflections" require_relative "souls/init" require_relative "souls/generate" require "json" require "fileutils" module Souls SOULS_METHODS = [ "model", "query", "mutation", "type", "resolver", "policy", "rspec_factory", "rspec_model", "rspec_query", "rspec_mutation", "rspec_resolver", "rspec_policy" ] class Error < StandardError; end class << self attr_accessor :configuration def run_psql system "docker run --rm -d \ -p 5433:5432 \ -v postgres-tmp:/var/lib/postgresql/data \ -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=postgres \ -e POSTGRES_DB=souls_test \ postgres:13-alpine" system "docker ps" end def run_awake url app = Souls.configuration.app system "gcloud scheduler jobs create http #{app}-awake --schedule '0,10,20,30,40,50 * * * *' --uri #{url} --http-method GET" end end def self.configure self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor :app, :strain def initialize @app = nil @strain = nil end end end
Version data entries
11 entries across 11 versions & 1 rubygems