source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/unit/type/mistral_config_spec.rb | Ruby | apache-2.0 | 19 | master | 2,042 | require 'puppet'
require 'puppet/type/mistral_config'
describe 'Puppet::Type.type(:mistral_config)' do
before :each do
@mistral_config = Puppet::Type.type(:mistral_config).new(:name => 'DEFAULT/foo', :value => 'bar')
end
it 'should require a name' do
expect {
Puppet::Type.type(:mistral_config).new(... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/unit/type/mistral_api_uwsgi_config_spec.rb | Ruby | apache-2.0 | 19 | master | 2,242 | require 'puppet'
require 'puppet/type/mistral_api_uwsgi_config'
describe 'Puppet::Type.type(:mistral_api_uwsgi_config)' do
before :each do
@mistral_api_uwsgi_config = Puppet::Type.type(:mistral_api_uwsgi_config).new(:name => 'DEFAULT/foo', :value => 'bar')
end
it 'should require a name' do
expect {
... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/unit/provider/mistral_config/openstackconfig_spec.rb | Ruby | apache-2.0 | 19 | master | 1,364 | require 'spec_helper'
provider_class = Puppet::Type.type(:mistral_config).provider(:openstackconfig)
describe provider_class do
it 'should default to the default setting when no other one is specified' do
resource = Puppet::Type::Mistral_config.new(
{:name => 'DEFAULT/foo', :value => 'bar'}
)
provi... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/unit/provider/mistral_api_uwsgi_config/openstackconfig_spec.rb | Ruby | apache-2.0 | 19 | master | 1,410 | require 'spec_helper'
provider_class = Puppet::Type.type(:mistral_api_uwsgi_config).provider(:ini_setting)
describe provider_class do
it 'should default to the default setting when no other one is specified' do
resource = Puppet::Type::Mistral_api_uwsgi_config.new(
{:name => 'DEFAULT/foo', :value => 'bar'}... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_config_spec.rb | Ruby | apache-2.0 | 19 | master | 885 | require 'spec_helper'
describe 'mistral::config' do
shared_examples 'mistral::config' do
let :params do
{
:mistral_config => {
'DEFAULT/foo' => { 'value' => 'fooValue' },
'DEFAULT/bar' => { 'value' => 'barValue' },
'DEFAULT/baz' => { 'ensure' => 'absent' }
}
... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_api_spec.rb | Ruby | apache-2.0 | 19 | master | 4,338 | require 'spec_helper'
describe 'mistral::api' do
let :params do
{
:api_workers => '1',
:enabled => true,
:manage_service => true,
:bind_host => '127.0.0.1',
:bind_port => '1234',... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_db_postgresql_spec.rb | Ruby | apache-2.0 | 19 | master | 1,106 | require 'spec_helper'
describe 'mistral::db::postgresql' do
shared_examples_for 'mistral::db::postgresql' do
let :req_params do
{ :password => 'mistralpass' }
end
let :pre_condition do
'include postgresql::server'
end
context 'with only required parameters' do
let :params do
... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_event_engine_spec.rb | Ruby | apache-2.0 | 19 | master | 2,481 | require 'spec_helper'
describe 'mistral::event_engine' do
let :params do
{ :enabled => true,
:manage_service => true,
:host => 'foo_host',
:topic => 'foo_topic',
:event_definitions_c... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_cors_spec.rb | Ruby | apache-2.0 | 19 | master | 1,595 | require 'spec_helper'
describe 'mistral::cors' do
shared_examples_for 'mistral::cors' do
it 'configure cors default params' do
is_expected.to contain_oslo__cors('mistral_config').with(
:allowed_origin => '<SERVICE DEFAULT>',
:allow_credentials => '<SERVICE DEFAULT>',
:expose_hea... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_logging_spec.rb | Ruby | apache-2.0 | 19 | master | 5,414 | require 'spec_helper'
describe 'mistral::logging' do
let :params do
{
}
end
let :log_params do
{
:logging_context_format_string => '%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s',
:logging_default_format_string => '... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_engine_spec.rb | Ruby | apache-2.0 | 19 | master | 4,489 | require 'spec_helper'
describe 'mistral::engine' do
let :params do
{}
end
shared_examples 'mistral::engine' do
context 'with defaults' do
it { is_expected.to contain_class('mistral::params') }
it 'configures mistral-engine parameters' do
is_expected.to contain_mistral_config('engine... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_executor_spec.rb | Ruby | apache-2.0 | 19 | master | 3,660 | require 'spec_helper'
describe 'mistral::executor' do
shared_examples_for 'mistral::executor' do
context 'with defaults' do
it 'configure executor default params' do
is_expected.to contain_mistral_config('executor/type').with_value('remote')
is_expected.to contain_mistral_config('executor/... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_client_spec.rb | Ruby | apache-2.0 | 19 | master | 1,058 | require 'spec_helper'
describe 'mistral::client' do
shared_examples_for 'mistral client' do
it { is_expected.to contain_class('mistral::deps') }
it { is_expected.to contain_class('mistral::params') }
it 'installs mistral client package' do
is_expected.to contain_package('python-mistralclient').w... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_execution_expiration_policy_spec.rb | Ruby | apache-2.0 | 19 | master | 2,260 | require 'spec_helper'
describe 'mistral::execution_expiration_policy' do
shared_examples_for 'mistral::execution_expiration_policy' do
context 'with defaults' do
it 'configures execution_expiration_policy parameters' do
is_expected.to contain_mistral_config('execution_expiration_policy/evaluation_... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_wsgi_apache_spec.rb | Ruby | apache-2.0 | 19 | master | 6,057 | require 'spec_helper'
describe 'mistral::wsgi::apache' do
shared_examples_for 'apache serving mistral with mod_wsgi' do
context 'with default parameters' do
it { is_expected.to contain_class('mistral::deps') }
it { is_expected.to contain_class('mistral::params') }
it { is_expected.to contain_o... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_wsgi_uwsgi_spec.rb | Ruby | apache-2.0 | 19 | master | 827 | require 'spec_helper'
describe 'mistral::wsgi::uwsgi' do
shared_examples 'mistral::wsgi::uwsgi' do
context 'with default parameters' do
it {
should contain_class('mistral::deps')
}
it {
is_expected.to contain_mistral_api_uwsgi_config('uwsgi/processes').with_value(facts[:os_wor... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_db_sync_spec.rb | Ruby | apache-2.0 | 19 | master | 1,667 | require 'spec_helper'
describe 'mistral::db::sync' do
shared_examples_for 'mistral-db-sync' do
it { is_expected.to contain_class('mistral::deps') }
it 'runs mistral-db-manage upgrade head' do
is_expected.to contain_exec('mistral-db-sync').with(
:command => 'mistral-db-manage upgrade hea... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_notifier_spec.rb | Ruby | apache-2.0 | 19 | master | 3,961 | require 'spec_helper'
describe 'mistral::notifier' do
shared_examples_for 'mistral::notifier' do
context 'with defaults' do
it 'configure notifier default params' do
is_expected.to contain_mistral_config('notifier/type').with_value('remote')
is_expected.to contain_mistral_config('notifier/... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_db_spec.rb | Ruby | apache-2.0 | 19 | master | 2,224 | require 'spec_helper'
describe 'mistral::db' do
shared_examples 'mistral::db' do
context 'with default parameters' do
it { should contain_class('mistral::deps') }
it { should contain_oslo__db('mistral_config').with(
:db_max_retries => '<SERVICE DEFAULT>',
:connection ... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_cron_trigger_spec.rb | Ruby | apache-2.0 | 19 | master | 1,040 | require 'spec_helper'
describe 'mistral::cron_trigger' do
shared_examples_for 'mistral cron trigger' do
it 'configure cron trigger default params' do
is_expected.to contain_mistral_config('cron_trigger/enabled').with_value('<SERVICE DEFAULT>')
is_expected.to contain_mistral_config('cron_trigger/exec... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_legacy_action_providers_spec.rb | Ruby | apache-2.0 | 19 | master | 2,025 | require 'spec_helper'
describe 'mistral::legacy_action_providers' do
let :params do
{}
end
shared_examples 'mistral::legacy_action_providers' do
context 'with defaults' do
it {
is_expected.to contain_mistral_config('legacy_action_providers/load_action_plugins').with_value('<SERVICE DEFAULT... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_db_mysql_spec.rb | Ruby | apache-2.0 | 19 | master | 1,437 | require 'spec_helper'
describe 'mistral::db::mysql' do
let :pre_condition do
"include mysql::server"
end
let :params do
{
:password => 'mistralpass',
}
end
shared_examples 'mistral::db::mysql' do
it { is_expected.to contain_class('mistral::deps') }
context 'with only required par... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_policy_spec.rb | Ruby | apache-2.0 | 19 | master | 2,675 | require 'spec_helper'
describe 'mistral::policy' do
shared_examples 'mistral::policy' do
context 'setup policy with parameters' do
let :params do
{
:enforce_scope => false,
:enforce_new_defaults => false,
:policy_path => '/etc/mistral/policy.yaml',
... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_action_providers_spec.rb | Ruby | apache-2.0 | 19 | master | 1,106 | require 'spec_helper'
describe 'mistral::action_providers' do
let :params do
{}
end
shared_examples 'mistral::action_providers' do
context 'with defaults' do
it {
is_expected.to contain_mistral_config('action_providers/allowlist').with_value('<SERVICE DEFAULT>')
is_expected.to cont... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_keystone_auth_spec.rb | Ruby | apache-2.0 | 19 | master | 3,526 | #
# Unit tests for mistral::keystone::auth
#
require 'spec_helper'
describe 'mistral::keystone::auth' do
shared_examples_for 'mistral::keystone::auth' do
context 'with default class parameters' do
let :params do
{ :password => 'mistral_password' }
end
it { is_expected.to contain_keyst... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_deps_spec.rb | Ruby | apache-2.0 | 19 | master | 889 | require 'spec_helper'
describe 'mistral::deps' do
shared_examples 'mistral::deps' do
it {
should contain_anchor('mistral::install::begin')
should contain_anchor('mistral::install::end')
should contain_anchor('mistral::config::begin')
should contain_anchor('mistral::config::end')
sho... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_keystone_authtoken_spec.rb | Ruby | apache-2.0 | 19 | master | 8,327 | require 'spec_helper'
describe 'mistral::keystone::authtoken' do
let :params do
{ :password => 'mistral_password', }
end
shared_examples 'mistral::keystone::authtoken' do
context 'with default parameters' do
it 'configure keystone_authtoken' do
contain_keystone__resources__authtoken('mi... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_init_spec.rb | Ruby | apache-2.0 | 19 | master | 7,875 | require 'spec_helper'
describe 'mistral' do
let :req_params do
{
:purge_config => false,
}
end
shared_examples 'mistral' do
context 'with only required params' do
let :params do
req_params
end
it { is_expected.to contain_class('mistral::params') }
it 'p... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/classes/mistral_healthcheck_spec.rb | Ruby | apache-2.0 | 19 | master | 2,387 | require 'spec_helper'
describe 'mistral::healthcheck' do
shared_examples_for 'mistral::healthcheck' do
context 'with default parameters' do
let :params do
{}
end
it 'configures default values' do
is_expected.to contain_mistral_config('healthcheck/enabled').with_value('<SERVIC... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/acceptance/99_mistral_config_spec.rb | Ruby | apache-2.0 | 19 | master | 1,617 | require 'spec_helper_acceptance'
describe 'basic mistral_config resource' do
context 'default parameters' do
it 'should work with no errors' do
pp= <<-EOS
Exec { logoutput => 'on_failure' }
File <||> -> Mistral_config <||>
file { '/etc/mistral' :
ensure => directory,
}
... |
github | openstack/puppet-mistral | https://github.com/openstack/puppet-mistral | spec/acceptance/10_basic_mistral_spec.rb | Ruby | apache-2.0 | 19 | master | 755 | require 'spec_helper_acceptance'
describe 'basic mistral' do
context 'default parameters' do
it 'should work with no errors' do
pp= <<-EOS
include openstack_integration
include openstack_integration::repos
include openstack_integration::apache
include openstack_integration::rabbit... |
github | persona-id/arctic | https://github.com/persona-id/arctic | Rakefile | Ruby | mit | 19 | main | 352 | # frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rake/extensiontask'
# Define the extension task
Rake::ExtensionTask.new('arctic') do |ext|
ext.lib_dir = 'lib/arctic'
end
RSpec::Core::RakeTask.new(:spec)
# Ensure extension is compiled before running specs
task spec... |
github | persona-id/arctic | https://github.com/persona-id/arctic | arctic.gemspec | Ruby | mit | 19 | main | 1,396 | # frozen_string_literal: true
Gem::Specification.new do |spec|
spec.name = 'arctic'
spec.version = File.read(File.join(__dir__, 'lib/arctic.rb'))[/VERSION\s*=\s*(['"])([0-9a-z\.-]*)\1/, 2]
spec.authors = ['Persona']
spec.email = ['rubygems@withpersona.com']
spec.summary = 'Frozen, deduplicated environment v... |
github | persona-id/arctic | https://github.com/persona-id/arctic | ext/arctic/extconf.rb | Ruby | mit | 19 | main | 522 | # frozen_string_literal: true
# typed: false
require 'mkmf'
# Check for required headers
have_header('stdlib.h') or raise 'stdlib.h not found'
have_header('string.h') or raise 'string.h not found'
# Check for interned string functions (available in Ruby 2.3+)
have_func('rb_interned_str_cstr', 'ruby.h')
have_func('rb... |
github | persona-id/arctic | https://github.com/persona-id/arctic | spec/spec_helper.rb | Ruby | mit | 19 | main | 603 | # typed: false
# frozen_string_literal: true
require 'arctic'
require 'climate_control'
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
# Disable RSpec exposing methods globally on `Module` and `main`
config.disa... |
github | persona-id/arctic | https://github.com/persona-id/arctic | spec/arctic_spec.rb | Ruby | mit | 19 | main | 8,974 | # typed: false
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Arctic do
describe '[]' do
it 'returns frozen strings' do
ENV['ARCTIC_TEST_VAR'] = 'test_value'
result = described_class['ARCTIC_TEST_VAR']
expect(result).to eq('test_value')
expect(result).to be_frozen
... |
github | persona-id/arctic | https://github.com/persona-id/arctic | spec/climate_control_spec.rb | Ruby | mit | 19 | main | 7,423 | # typed: false
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Arctic do
context 'with ClimateControl' do
describe 'single variable modification' do
it 'detects ENV changes within ClimateControl block' do
ENV['TEST_VAR'] = 'original'
# Access before modification
... |
github | persona-id/arctic | https://github.com/persona-id/arctic | spec/performance_spec.rb | Ruby | mit | 19 | main | 7,753 | # typed: false
# frozen_string_literal: true
# rubocop:disable Persona/AvoidObjectSpace
require 'spec_helper'
RSpec.describe Arctic do
describe 'zero allocations after initial intern' do
it 'allocates no strings on repeated [] access' do
ENV['ARCTIC_ALLOC_TEST'] = 'shared_value'
key = 'ARCTIC_ALLOC... |
github | persona-id/arctic | https://github.com/persona-id/arctic | lib/arctic.rb | Ruby | mit | 19 | main | 404 | # typed: false
# frozen_string_literal: true
module Arctic
VERSION = "0.1.0"
end
# Load the compiled C extension
# The extension defines the Arctic module and all its methods
begin
require 'arctic/arctic'
rescue LoadError => e
# Provide helpful error message if extension not compiled
raise LoadError, 'Could n... |
github | logstash-plugins/logstash-input-google_pubsub | https://github.com/logstash-plugins/logstash-input-google_pubsub | Rakefile | Ruby | apache-2.0 | 19 | main | 292 | require "logstash/devutils/rake"
require "jars/installer"
require "fileutils"
task :default do
system('rake -vT')
end
task :vendor do
exit(1) unless system './gradlew vendor'
end
task :clean do
["vendor/jar-dependencies", "Gemfile.lock"].each do |p|
FileUtils.rm_rf(p)
end
end |
github | logstash-plugins/logstash-input-google_pubsub | https://github.com/logstash-plugins/logstash-input-google_pubsub | logstash-input-google_pubsub.gemspec | Ruby | apache-2.0 | 19 | main | 1,819 | Gem::Specification.new do |s|
s.name = 'logstash-input-google_pubsub'
s.version = ::File.read('version').split("\n").first
s.licenses = ['Apache-2.0']
s.summary = "Consume events from a Google Cloud PubSub service"
s.description = "This gem is a Logstash input plugin required to be installed on top of... |
github | logstash-plugins/logstash-input-google_pubsub | https://github.com/logstash-plugins/logstash-input-google_pubsub | lib/logstash/inputs/google_pubsub.rb | Ruby | apache-2.0 | 19 | main | 12,434 | # encoding: utf-8
# Author: Eric Johnson <erjohnso@google.com>
# Date: 2016-06-01
#
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.or... |
github | logstash-plugins/logstash-input-google_pubsub | https://github.com/logstash-plugins/logstash-input-google_pubsub | spec/inputs/google_pubsub_spec.rb | Ruby | apache-2.0 | 19 | main | 4,766 | require "logstash/devutils/rspec/spec_helper"
require "logstash/inputs/google_pubsub"
describe LogStash::Inputs::GooglePubSub do
let(:minimal_config) { { 'project_id' => 'myproj', 'subscription' => 'foo', 'topic' => 'bar' } }
describe "configuration validation" do
context "required settings" do
it "rai... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | Rakefile | Ruby | apache-2.0 | 19 | main | 387 | # frozen_string_literal: true
require 'bundler'
require 'puppet_litmus/rake_tasks' if Gem.loaded_specs.key? 'puppet_litmus'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
PuppetLint.configuration.send('di... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | Gemfile | Ruby | apache-2.0 | 19 | main | 3,866 | source ENV['GEM_SOURCE'] || 'https://rubygems.org'
def location_for(place_or_version, fake_version = nil)
git_url_regex = %r{\A(?<url>(https?|git)[:@][^#]*)(#(?<branch>.*))?}
file_url_regex = %r{\Afile:\/\/(?<path>.*)}
if place_or_version && (git_url = place_or_version.match(git_url_regex))
[fake_version, {... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | lib/docker_helper.rb | Ruby | apache-2.0 | 19 | main | 1,522 | # frozen_string_literal: true
require 'json'
def docker_exec(container_id, command)
run_local_command("docker exec #{container_id} #{command}")
end
def docker_image_os_release_facts(image)
os_release_facts = {}
begin
os_release = run_local_command("docker run --rm #{image} cat /etc/os-release")
# The o... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | lib/inventory_helper.rb | Ruby | apache-2.0 | 19 | main | 3,313 | # frozen_string_literal: true
require 'yaml'
require 'delegate'
require 'json'
# simple bolt inventory manipulator
class InventoryHelper < SimpleDelegator
def initialize(location)
@location = location
super(refresh)
end
# Load inventory from location in YAML format
# or generate a default structure
... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | lib/task_helper.rb | Ruby | apache-2.0 | 19 | main | 2,257 | # frozen_string_literal: true
def run_local_command(command, dir = Dir.pwd)
require 'open3'
stdout, stderr, status = Open3.capture3(command, chdir: dir)
error_message = "Attempted to run\ncommand:'#{command}'\nstdout:#{stdout}\nstderr:#{stderr}"
raise error_message unless status.to_i.zero?
stdout
end
def p... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/spec_helper_local.rb | Ruby | apache-2.0 | 19 | main | 430 | require 'fileutils'
RSpec.configure do |rspec|
rspec.expect_with :rspec do |c|
c.max_formatted_output_length = nil
end
end
RSpec.shared_context('with tmpdir') do
let(:tmpdir) { @tmpdir } # rubocop:disable RSpec/InstanceVariable
around(:each) do |example|
Dir.mktmpdir('rspec-provision_test') do |t|
... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/tasks/vagrant_spec.rb | Ruby | apache-2.0 | 19 | main | 1,246 | require 'json'
require 'rspec'
require 'spec_helper'
require 'net/ssh'
require_relative '../../tasks/vagrant'
describe 'vagrant' do
let(:provider) { 'virtualbox' }
let(:platform) { 'generic/debian10' }
include_context('with tmpdir')
before(:each) do
# Stub $stdin.read to return a predefined JSON string
... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/tasks/lxd_spec.rb | Ruby | apache-2.0 | 19 | main | 6,456 | # frozen_string_literal: true
require 'fileutils'
require 'spec_helper'
require 'webmock/rspec'
require_relative '../../tasks/lxd'
require 'yaml'
RSpec::Matchers.define_negated_matcher :not_raise_error, :raise_error
describe 'provision::lxd' do
include_context('with tmpdir')
let(:lxd) { LXDProvision.new }
le... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/tasks/abs_spec.rb | Ruby | apache-2.0 | 19 | main | 5,136 | # frozen_string_literal: true
require 'spec_helper'
require 'webmock/rspec'
require_relative '../../tasks/abs'
require 'yaml'
describe 'provision::abs' do
let(:abs) { ABSProvision.new }
let(:inventory_dir) { "#{tmpdir}/spec/fixtures" }
let(:inventory_file) { "#{inventory_dir}/litmus_inventory.yaml" }
let(:emp... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/tasks/provision_service_spec.rb | Ruby | apache-2.0 | 19 | main | 5,903 | # frozen_string_literal: true
require 'spec_helper'
require 'webmock/rspec'
require_relative '../../tasks/provision_service'
ENV['GITHUB_RUN_ID'] = '1234567890'
ENV['GITHUB_URL'] = 'https://api.github.com/repos/puppetlabs/puppetlabs-iis/actions/runs/1234567890'
describe 'ProvisionService' do
describe '.run' do
... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/unit/inventory_helper_spec.rb | Ruby | apache-2.0 | 19 | main | 2,080 | # frozen_string_literal: true
require 'spec_helper'
require 'inventory_helper'
describe InventoryHelper, type: :class do
include_context('with tmpdir')
let(:inventory_file) { tmpdir }
let(:inventory) { described_class.open(inventory_file) }
let(:node_uri) { 'testing' }
let(:node_name) { node_uri }
let(:... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/unit/task_helper_spec.rb | Ruby | apache-2.0 | 19 | main | 1,117 | # frozen_string_literal: true
require 'task_helper'
describe 'Utility Functions' do
describe '.platform_is_windows?' do
it 'correctly identifies Windows platforms' do
expect(platform_is_windows?('somewinorg/blah-windows-2019')).to be_truthy
expect(platform_is_windows?('somewinorg/blah-WinDows-2019')... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/unit/docker_helper_spec.rb | Ruby | apache-2.0 | 19 | main | 3,316 | # frozen_string_literal: true
require 'docker_helper'
require 'stringio'
describe 'Docker Helper Functions' do
let(:container_id) { 'abc12345' }
let(:inventory_location) { '.' }
let(:full_inventory_location) { "#{inventory_location}/spec/fixtures/litmus_inventory.yaml" }
let(:inventory_yaml) do
<<-YAML
... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | spec/integration/puppetcore_spec.rb | Ruby | apache-2.0 | 19 | main | 1,375 | # frozen_string_literal: true
require 'spec_helper'
require 'bundler'
RSpec.describe 'Gemfile.lock verification' do
let(:parser) { Bundler::LockfileParser.new(Bundler.read_file(Bundler.default_lockfile)) }
let(:private_source) { 'https://rubygems-puppetcore.puppet.com/' }
# Helper method to get source remotes ... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/run_tests.rb | Ruby | apache-2.0 | 19 | main | 926 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'puppet_litmus'
require_relative '../lib/task_helper'
def run_tests(sut, test_path, format)
test = "bundle exec rspec #{test_path} --format #{format}"
options = {
env: {
'TARGET_HOST' => sut
}
}
env = options[:env].nil? ? {} : options[:en... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/docker_exp.rb | Ruby | apache-2.0 | 19 | main | 2,912 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'yaml'
require_relative '../lib/task_helper'
require_relative '../lib/docker_helper'
require_relative '../lib/inventory_helper'
# TODO: detect what shell to use
@shell_command = 'bash -lc'
def provision(docker_platform, inventory, vars)
os_re... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/update_site_pp.rb | Ruby | apache-2.0 | 19 | main | 698 | #!/opt/puppetlabs/puppet/bin/ruby
# frozen_string_literal: true
require 'json'
require 'open3'
require 'puppet'
def update_file(manifest)
path = '/etc/puppetlabs/code/environments/production/manifests'
_stdout, stderr, status = Open3.capture3("mkdir -p #{path}")
raise Puppet::Error, "stderr: ' %{stderr}')" % ({... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/vagrant.rb | Ruby | apache-2.0 | 19 | main | 10,335 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'net/http'
require 'yaml'
require 'puppet_litmus'
require 'fileutils'
require 'net/ssh'
require_relative '../lib/task_helper'
require_relative '../lib/inventory_helper'
def vagrant_version
return @vagrant_version if defined?(@vagrant_version)
... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/lxd.rb | Ruby | apache-2.0 | 19 | main | 4,551 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'yaml'
require_relative '../lib/task_helper'
require_relative '../lib/inventory_helper'
# Provision and teardown instances on LXD
class LXDProvision
attr_reader :node_name, :retries
attr_reader :platform, :inventory, :vars, :action, :options... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/abs.rb | Ruby | apache-2.0 | 19 | main | 7,976 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'net/http'
require 'yaml'
require 'etc'
require 'date'
require_relative '../lib/task_helper'
require_relative '../lib/inventory_helper'
# Provision and teardown vms through ABS.
class ABSProvision
# Enforces a k8s.infracore.puppet.net domain, ... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/docker.rb | Ruby | apache-2.0 | 19 | main | 9,015 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'uri'
require 'yaml'
require_relative '../lib/task_helper'
require_relative '../lib/docker_helper'
require_relative '../lib/inventory_helper'
def install_ssh_components(distro, version, container)
case distro
when %r{debian}, %r{ubuntu}, %r{... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/provision_service.rb | Ruby | apache-2.0 | 19 | main | 6,713 | #!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'net/http'
require 'yaml'
require 'etc'
require_relative '../lib/task_helper'
require_relative '../lib/inventory_helper'
# Provision and teardown vms through provision service.
class ProvisionService
RETRY_COUNT = 3
def default_uri
'htt... |
github | puppetlabs/provision | https://github.com/puppetlabs/provision | tasks/update_node_pp.rb | Ruby | apache-2.0 | 19 | main | 1,284 | #!/opt/puppetlabs/puppet/bin/ruby
# frozen_string_literal: true
require 'json'
require 'open3'
require 'puppet'
# see https://github.com/DavidS/dasz-configuration/blob/main/manifests/nodes/backup.dasz.at.pp
# see https://github.com/DavidS/dasz-configuration/blob/main/manifests/site.pp
def update_file(manifest, target_... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | circuit_switch.gemspec | Ruby | mit | 19 | main | 1,495 | require_relative 'lib/circuit_switch/version'
Gem::Specification.new do |spec|
spec.name = "circuit_switch"
spec.version = CircuitSwitch::VERSION
spec.authors = ["makicamel"]
spec.email = ["unright@gmail.com"]
spec.summary = 'Circuit switch with report tools'
spec.descri... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | Appraisals | Ruby | mit | 19 | main | 503 | appraise "rails_7_1" do
gem "activejob", "~> 7.1.0"
gem "activerecord", "~> 7.1.0"
gem "activesupport", "~> 7.1.0"
end
appraise "rails_7_2" do
gem "activejob", "~> 7.2.0"
gem "activerecord", "~> 7.2.0"
gem "activesupport", "~> 7.2.0"
end
appraise "rails_8_0" do
gem "activejob", "~> 8.0.0"
gem "activer... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | Gemfile | Ruby | mit | 19 | main | 325 | source "https://rubygems.org"
# Specify your gem's dependencies in circuit_switch.gemspec
gemspec
gem "appraisal"
gem "rake", "~> 13.0"
rails_version = ENV['RAILS_VERSION']
if rails_version
version = "~> #{rails_version}"
%w[activejob activerecord activesupport].each do |gem_name|
gem gem_name, version
end... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | app/controllers/circuit_switch/circuit_switch_controller.rb | Ruby | mit | 19 | main | 1,278 | require_dependency 'circuit_switch/application_controller'
module CircuitSwitch
class CircuitSwitchController < ::CircuitSwitch::ApplicationController
def index
@circuit_switches = ::CircuitSwitch::CircuitSwitch.all.order(order_by)
end
def edit
@circuit_switch = ::CircuitSwitch::CircuitSwitc... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch.rb | Ruby | mit | 19 | main | 4,016 | require_relative 'circuit_switch/configuration'
require_relative 'circuit_switch/builder'
require_relative 'circuit_switch/orm/active_record/circuit_switch'
require_relative 'circuit_switch/engine' if defined?(Rails)
require_relative 'circuit_switch/railtie' if defined?(Rails::Railtie)
require_relative 'circuit_switch/... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/generators/circuit_switch/install_generator.rb | Ruby | mit | 19 | main | 346 | # frozen_string_literal: true
module CircuitSwitch
class InstallGenerator < ::Rails::Generators::Base
include ::Rails::Generators::Migration
source_root File.expand_path('templates', __dir__)
desc 'Installs CircuitSwitch.'
def install
template 'initializer.rb', 'config/initializers/circuit_swi... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/generators/circuit_switch/migration_generator.rb | Ruby | mit | 19 | main | 1,153 | require 'rails/generators/active_record'
module CircuitSwitch
class MigrationGenerator < ActiveRecord::Generators::Base
desc 'Create a migration to manage circuit switches state'
source_root File.expand_path('templates', __dir__)
argument :migration_type, required: false, type: :array, default: ['create'... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/generators/circuit_switch/templates/initializer.rb | Ruby | mit | 19 | main | 1,552 | # frozen_string_literal: true
CircuitSwitch.configure do |config|
# Specify proc to call your report tool: like;
# config.reporter = -> (message, error) { Bugsnag.notify(error) }
# config.reporter = -> (message, error) { Sentry::Rails.capture_message(message) }
config.reporter = nil
# Condition to report
... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/notification.rb | Ruby | mit | 19 | main | 431 | require_relative 'stacktrace_modifier'
module CircuitSwitch
class CircuitSwitchError < RuntimeError
end
class CircuitSwitchNotification < RuntimeError
end
class CalledNotification < CircuitSwitchNotification
def to_message(called_path:)
if ::CircuitSwitch.config.with_backtrace
"#{message}... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/configuration.rb | Ruby | mit | 19 | main | 1,033 | module CircuitSwitch
class Configuration
CIRCUIT_SWITCH = 'circuit_switch'.freeze
attr_accessor :reporter, :due_date_notifier
attr_writer :report_paths, :report_if, :due_date, :with_backtrace, :allowed_backtrace_paths, :strip_paths
def report_paths
@report_paths ||= [Rails.root]
end
d... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/core.rb | Ruby | mit | 19 | main | 3,072 | require_relative 'notification'
require_relative 'workers/reporter'
require_relative 'workers/run_count_updater'
module CircuitSwitch
class Core
delegate :config, to: ::CircuitSwitch
attr_reader :key, :run_if, :close_if, :close_if_reach_limit, :run_limit_count, :initially_closed,
:report_if, :stop_repo... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/builder.rb | Ruby | mit | 19 | main | 1,828 | require_relative 'core'
module CircuitSwitch
class Builder < Core
def initialize
super
@run = false
@reported = false
end
def assign_runner(
key: nil,
if: true,
close_if: false,
close_if_reach_limit: false,
limit_count: nil,
initially_closed: false
... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/stacktrace_modifier.rb | Ruby | mit | 19 | main | 579 | require 'active_support/core_ext/module/delegation'
module CircuitSwitch
class StacktraceModifier
class << self
delegate :config, to: ::CircuitSwitch
def call(backtrace:)
if config.with_backtrace
backtrace
.select { |path| /(#{config.allowed_backtrace_paths.join('|')})/... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/orm/active_record/circuit_switch.rb | Ruby | mit | 19 | main | 1,385 | require 'active_record'
module CircuitSwitch
class CircuitSwitch < ::ActiveRecord::Base
validates :key, uniqueness: true
after_initialize do |switch|
switch.key ||= switch.caller
end
def assign(run_limit_count: nil, report_limit_count: nil)
self.run_limit_count = run_limit_count if run_... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/workers/run_count_updater.rb | Ruby | mit | 19 | main | 1,049 | require 'active_job'
require 'active_support/core_ext/module/delegation'
module CircuitSwitch
class RunCountUpdater < ::ActiveJob::Base
delegate :config, to: ::CircuitSwitch
def perform(key:, limit_count:, called_path:, reported:, initially_closed:)
# Wait for Reporter saves circuit_switch
sleep... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/workers/reporter.rb | Ruby | mit | 19 | main | 1,394 | require 'active_job'
require 'active_support/core_ext/module/delegation'
module CircuitSwitch
class Reporter < ::ActiveJob::Base
delegate :config, to: ::CircuitSwitch
def perform(key:, limit_count:, called_path:, stacktrace:, run:)
# Wait for RunCountUpdater saves circuit_switch
sleep(3) if run
... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/workers/due_date_notifier.rb | Ruby | mit | 19 | main | 939 | require 'date'
module CircuitSwitch
class DueDateNotifier < ::ActiveJob::Base
delegate :config, to: ::CircuitSwitch
def perform
raise CircuitSwitchError.new('Set config.due_date_notifier.') unless config.due_date_notifier
circuit_switches = CircuitSwitch.where('due_date <= ?', Date.today).order... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | lib/circuit_switch/tasks/circuit_switch.rake | Ruby | mit | 19 | main | 1,759 | namespace :circuit_switch do
desc 'Update run_is_terminated to true to close circuit'
task :terminate_to_run, ['key_or_caller'] => :environment do |_, arg|
key_or_caller = arg[:key_or_caller]
puts "Start to update run_is_terminated of circuit_switch for '#{key_or_caller}' to true."
sleep(3)
switch ... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/circuit_switch_test.rb | Ruby | mit | 19 | main | 3,803 | require 'test_helper'
class CircuitSwitchTest < Test::Unit::TestCase
def test_run_returns_builder_instance
assert_instance_of(
CircuitSwitch::Builder,
CircuitSwitch.run {}
)
end
def test_run_assigns_value_when_receives_value
if_value = [true, false].sample
close_if_value = [true, fal... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/test_helper.rb | Ruby | mit | 19 | main | 952 | $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
require 'active_job'
require 'active_record'
require 'bundler/setup'
Bundler.require
require 'support/setup_database'
require 'byebug'
require 'test/unit'
require 'test/unit/rr'
require 'circuit_switch'
CircuitSwitch.configure do |config|
config.reporter = -... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/lib/core_test.rb | Ruby | mit | 19 | main | 6,492 | require 'test_helper'
class CoreTest < Test::Unit::TestCase
include ::CircuitSwitch::TestHelper
setup do
CircuitSwitch::CircuitSwitch.truncate
end
def runner(arguments = {})
core = CircuitSwitch::Builder.new
core.assign_runner(**arguments)
core
end
def reporter(arguments = {})
core =... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/lib/builder_test.rb | Ruby | mit | 19 | main | 2,548 | require 'test_helper'
class BuilderTest < Test::Unit::TestCase
include ::CircuitSwitch::TestHelper
def test_run_assigns_value_when_receives_value
builder = CircuitSwitch::Builder.new
if_value = [true, false].sample
close_if_value = [true, false].sample
close_if_reach_limit_value = [true, false].sa... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/lib/orm/active_record/circuit_switch_test.rb | Ruby | mit | 19 | main | 1,095 | require 'test_helper'
class CircuitSwitchTest < Test::Unit::TestCase
def test_assign_sets_attribute_when_has_nil_and_receives_value
circuit_switch = CircuitSwitch::CircuitSwitch
.new(run_limit_count: nil)
.assign(run_limit_count: 1)
assert_equal(
1,
circuit_switch.run_limit_count
... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/lib/workers/due_date_notifier_test.rb | Ruby | mit | 19 | main | 1,434 | require 'test_helper'
class DueDateNotifierTest < Test::Unit::TestCase
include ::CircuitSwitch::TestHelper
setup do
CircuitSwitch::CircuitSwitch.truncate
end
def test_notifier_calls_config_notifier
message = 'There is no switch!'
assert_equal(
message,
CircuitSwitch::DueDateNotifier.n... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/lib/workers/reporter_test.rb | Ruby | mit | 19 | main | 2,618 | require 'test_helper'
class ReporterTest < Test::Unit::TestCase
include ::CircuitSwitch::TestHelper
setup do
CircuitSwitch::CircuitSwitch.truncate
end
def test_reporter_calls_config_reporter
message = CircuitSwitch::Reporter.new.perform(key: nil, limit_count: 10, called_path: called_path, stacktrace:... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/lib/workers/run_count_updater_test.rb | Ruby | mit | 19 | main | 2,473 | require 'test_helper'
class RunCountUpdaterTest < Test::Unit::TestCase
include ::CircuitSwitch::TestHelper
setup do
CircuitSwitch::CircuitSwitch.truncate
end
def test_updater_creates_circuit_switch_when_no_switch
assert_equal(
0,
CircuitSwitch::CircuitSwitch.all.size
)
CircuitSwit... |
github | makicamel/circuit_switch | https://github.com/makicamel/circuit_switch | test/support/setup_database.rb | Ruby | mit | 19 | main | 1,037 | if ActiveRecord.version >= Gem::Version.new('6.0')
ActiveRecord::Base.configurations = { test: { adapter: 'sqlite3', database: ':memory:' } }
ActiveRecord::Base.establish_connection :test
else
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'
end
class CreateCircuitSwitches < Activ... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | cmis-ruby.gemspec | Ruby | apache-2.0 | 19 | master | 1,009 | $LOAD_PATH.unshift 'lib'
require 'cmis/version'
Gem::Specification.new do |s|
s.name = 'cmis-ruby'
s.version = CMIS::VERSION
s.date = Time.now.strftime('%Y-%m-%d')
s.authors = [ 'Kenneth Geerts', 'Michael Brackx' ]
s.email = [ 'ken... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | lib/cmis.rb | Ruby | apache-2.0 | 19 | master | 817 | require 'ext/hash/except'
require 'ext/hash/keys'
require 'ext/hash/slice'
require 'ext/string/as_ruby_property'
require 'cmis/exceptions'
require 'cmis/helpers'
require 'cmis/object_factory'
require 'cmis/connection'
require 'cmis/server'
require 'cmis/repository'
require 'cmis/object'
require 'cmis/document'
require... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | lib/ext/hash/except.rb | Ruby | apache-2.0 | 19 | master | 743 | class Hash
# Returns a hash that includes everything except given keys.
# hash = { a: true, b: false, c: nil }
# hash.except(:c) # => { a: true, b: false }
# hash.except(:a, :b) # => { c: nil }
# hash # => { a: true, b: false, c: nil }
#
# This is useful for limiting a set of pa... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | lib/ext/hash/keys.rb | Ruby | apache-2.0 | 19 | master | 5,549 | class Hash
# Returns a new hash with all keys converted using the +block+ operation.
#
# hash = { name: 'Rob', age: '28' }
#
# hash.transform_keys { |key| key.to_s.upcase } # => {"NAME"=>"Rob", "AGE"=>"28"}
#
# If you do not provide a +block+, it will return an Enumerator
# for chaining with other met... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | lib/ext/hash/slice.rb | Ruby | apache-2.0 | 19 | master | 1,609 | class Hash
# Slices a hash to include only the given keys. Returns a hash containing
# the given keys.
#
# { a: 1, b: 2, c: 3, d: 4 }.slice(:a, :b)
# # => {:a=>1, :b=>2}
#
# This is useful for limiting an options hash to valid keys before
# passing to a method:
#
# def search(criteria = {})
... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | lib/cmis/repository.rb | Ruby | apache-2.0 | 19 | master | 4,870 | require 'cmis/query'
require 'cmis/utils'
require 'json'
module CMIS
class Repository
attr_reader :server
def initialize(raw, server)
@hash = raw
@hash.each_key do |key|
self.class.class_eval "def #{key.as_ruby_property};@hash['#{key}'];end"
self.class.class_eval "def #{key.gsub(... |
github | UP-nxt/cmis-ruby | https://github.com/UP-nxt/cmis-ruby | lib/cmis/exceptions.rb | Ruby | apache-2.0 | 19 | master | 1,108 | module CMIS
module Exceptions
InvalidArgument = Class.new(StandardError)
NotSupported = Class.new(StandardError)
ObjectNotFound = Class.new(StandardError)
PermissionDenied = Class.new(StandardError)
Runt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.