repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/support/shared_examples_for_cpu.rb
spec/support/shared_examples_for_cpu.rb
CPU_8_BIT_REGISTERS = %w'a x y s' CPU_FLAGS = %w'n v d i z c' CPU_8_BIT_REGISTERS.each do |register| shared_examples_for "set #{register.upcase} value" do |expected| it do cpu.step value = cpu.send(register) expect(value).to be(expected), "Expected: #{hex_byte(expected)}, found: #{hex_byte(val...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/support/shared_examples_for_bus.rb
spec/support/shared_examples_for_bus.rb
%w'tia riot cart'.each do |chip| shared_examples_for "read address range from #{chip}" do |range| it do range.each do |address| value = Random.rand(256) allow(send(chip)).to receive(:[]).with(address).and_return(value) expect(subject[address]).to eq(value) end end end ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/support/shared_examples_for_tia.rb
spec/support/shared_examples_for_tia.rb
shared_examples_for 'update collision register bit for objects' do |register, bit, obj1, obj2| before do tia.reg[CXCLR] = 0 %w'p0 p1 m0 m1 bl pf'.each { |obj| turn_off obj } end context 'both objects output' do before do turn_on obj1 turn_on obj2 end it 'sets the flag' do tia...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/support/shared_examples_for_riot.rb
spec/support/shared_examples_for_riot.rb
shared_examples_for 'a timer with clock interval' do |interval| let(:initial_value) { rand(50) + 200 } before { riot[timer_register] = initial_value } it 'decrements immediately after initialization' do expect(riot[INTIM]).to eq(initial_value - 1) end it 'reduces current value (INTM) on every 8th call' ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/cpu_spec.rb
spec/lib/ruby2600/cpu_spec.rb
require 'spec_helper' describe Ruby2600::CPU do subject(:cpu) { Ruby2600::CPU.new } CPU_FLAGS.each do |flag| it 'initializes with a readable #{flag} flag' do expect { cpu.send(flag) }.to_not raise_error end end %w'x y a s'.each do |register| it "initializes with a byte-size #{register} regi...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
true
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/playfield_spec.rb
spec/lib/ruby2600/playfield_spec.rb
require 'spec_helper' describe Ruby2600::Playfield do let(:tia) { double 'tia', :reg => Array.new(64, 0), :scanline_stage => :visible } subject(:playfield) { Ruby2600::Playfield.new(tia, 0) } def scanline playfield.reset (0..159).map{ playfield.tick; playfield.pixel } end describe 'pixel' do i...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/cart_spec.rb
spec/lib/ruby2600/cart_spec.rb
require 'spec_helper' describe Ruby2600::Cart do let(:cart_4K) { Ruby2600::Cart.new(path_for_ROM :hello) } let(:cart_2K) { Ruby2600::Cart.new(path_for_ROM :hello2k) } it 'silently ignore writes' do old_value = cart_4K[0x0000] cart_4K[0x0000] = rand(256) expect(cart_4K[0x0000]).to eq(old_value) ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/missile_spec.rb
spec/lib/ruby2600/missile_spec.rb
require 'spec_helper' describe Ruby2600::Missile do let(:tia) { double 'tia', :reg => Array.new(64, 0), :scanline_stage => :visible } subject(:missile) { Ruby2600::Missile.new(tia, 0) } context 'missile 1' do subject(:missile1) { Ruby2600::Missile.new(tia, 1) } before do tia.reg[ENAM1] = 0 ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/player_spec.rb
spec/lib/ruby2600/player_spec.rb
require 'spec_helper' describe Ruby2600::Player do let(:tia) { double 'tia', :reg => Array.new(64, 0), :scanline_stage => :visible } subject(:player) { Ruby2600::Player.new(tia, 0) } context 'player 1' do subject(:player1) { Ruby2600::Player.new(tia, 1) } before do tia.reg[GRP0] = 0x00 tia...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/bus_spec.rb
spec/lib/ruby2600/bus_spec.rb
require 'spec_helper' describe Ruby2600::Bus do let(:cpu) { double('cpu', :memory= => nil, :reset => nil) } let(:tia) { double('tia', :cpu= => nil, :riot= => nil, :reg => Array.new(64, rand(256))) } let(:cart) { double('cart') } let(:riot) { double('riot', :portA= => nil, :portB= => nil) } subject(:bus) ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/tia_spec.rb
spec/lib/ruby2600/tia_spec.rb
require 'spec_helper' describe Ruby2600::TIA do subject(:tia) do tia = Ruby2600::TIA.new tia.cpu = double('cpu', :tick => nil, :halted= => nil) tia.riot = double('riot', :tick => nil) # Make registers accessible (for easier testing) def tia.reg @reg end tia end def clear_tia...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/frame_generator_spec.rb
spec/lib/ruby2600/frame_generator_spec.rb
require 'spec_helper' describe Ruby2600::FrameGenerator do let(:cpu) { double('cpu', :tick => nil, :halted= => nil) } let(:tia) { double('tia').as_null_object } let(:riot) { double('riot', :tick => nil) } subject(:frame_generator) { Ruby2600::FrameGenerator.new(cpu, tia, riot) } describe '#scanline' do ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/counter_spec.rb
spec/lib/ruby2600/counter_spec.rb
require 'spec_helper' describe Ruby2600::Counter do let(:subject) { Ruby2600::Counter.new } let(:sample_of_initial_values) { Array.new(100) { Ruby2600::Counter.new.value } } describe '#initialize' do it 'initializes with a random value' do unique_value_count = sample_of_initial_values.uniq.length ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/ball_spec.rb
spec/lib/ruby2600/ball_spec.rb
require 'spec_helper' describe Ruby2600::Ball do let(:tia) { double 'tia', :reg => Array.new(64, 0), :scanline_stage => :visible } subject(:ball) { Ruby2600::Ball.new(tia) } describe 'pixel' do let(:color) { [rand(255) + 1] } before do tia.reg[COLUPF] = color[0] ball.reset end it ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/graphic_spec.rb
spec/lib/ruby2600/graphic_spec.rb
require 'spec_helper' describe Ruby2600::Graphic do let(:subject) { Ruby2600::Graphic.new(tia) } let(:tia) { double 'tia', :reg => Array.new(64, 0) } describe '#reg' do context 'p0 / m0 / bl' do let(:subject) { Ruby2600::Graphic.new(tia, 0) } it 'alwayss read the requested register' do ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/riot_spec.rb
spec/lib/ruby2600/riot_spec.rb
require 'spec_helper' describe Ruby2600::RIOT do subject(:riot) { Ruby2600::RIOT.new } it 'initializes on a working state' do expect { riot.tick }.to_not raise_error expect { riot[SWCHA].to_i }.to_not raise_error expect { riot[SWCHB].to_i }.to_not raise_error end describe 'ram (#ram)' do ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/lib/ruby2600/constants_spec.rb
spec/lib/ruby2600/constants_spec.rb
require 'spec_helper' # Testing constants may sound nonsensical, but we must be 100% sure that # their addresses (used by RIOT and TIA classes) match the mapping on Bus, # guaranteeing that chips will work regardless of the mirror used by games describe Ruby2600::Constants do it 'uses $00-$3F mirror in all TIA cons...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/functional/vertical_delay_spec.rb
spec/functional/vertical_delay_spec.rb
require 'spec_helper' describe 'vertical delay' do subject(:frame_generator) { Ruby2600::FrameGenerator.new(cpu, tia, riot) } let(:cpu) { double 'cpu', :tick => nil, :halted= => nil } let(:riot) { double 'riot', :tick => nil } let(:tia) do tia = Ruby2600::TIA.new tia.cpu = cpu tia.riot = riot ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/functional/diagonal_spec.rb
spec/functional/diagonal_spec.rb
require 'spec_helper' describe 'diagonal drawn with stetched missile and HMOV' do let(:cart) { Ruby2600::Cart.new(path_for_ROM :diagonal_hmov) } let(:tia) { Ruby2600::TIA.new } let(:cpu) { Ruby2600::CPU.new } let(:riot) { Ruby2600::RIOT.new } let!(:bus) { Ruby2600::Bus.new(cpu, tia, cart, riot) } it 'd...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/spec/functional/hello_spec.rb
spec/functional/hello_spec.rb
require 'spec_helper' describe 'hello world with CPU, TIA, Cart and Bus' do let(:cart) { Ruby2600::Cart.new(path_for_ROM :hello) } let(:tia) { Ruby2600::TIA.new } let(:cpu) { Ruby2600::CPU.new } let(:riot) { Ruby2600::RIOT.new } let!(:bus) { Ruby2600::Bus.new(cpu, tia, cart, riot) } it 'generates frame...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600.rb
lib/ruby2600.rb
require 'ruby2600/constants' require 'ruby2600/bus' require 'ruby2600/frame_generator' require 'ruby2600/cpu' require 'ruby2600/cart' require 'ruby2600/riot' require 'ruby2600/tia' require 'ruby2600/counter' require 'ruby2600/graphic' require 'ruby2600/player' require 'ruby2600/missile' require 'ruby2600/ball' requi...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/playfield.rb
lib/ruby2600/playfield.rb
module Ruby2600 class Playfield < Graphic @color_register = COLUPF # register+bit map for each playfield pixel REG_AND_BIT_FOR_PIXEL = [[PF0, 4], [PF0, 5], [PF0, 6], [PF0, 7], [PF1, 7], [PF1, 6], [PF1, 5], [PF1, 4], [PF1, 3], [PF1, 2], [PF1, 1], [PF1, 0], ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/version.rb
lib/ruby2600/version.rb
module Ruby2600 VERSION = "0.1.4" end
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/fps_calculator.rb
lib/ruby2600/fps_calculator.rb
module Ruby2600 class FPSCalculator def initialize(bus, summary_frequency_frames = 10, report_frequency_seconds = 2) @report_frequency_seconds = report_frequency_seconds @summary_frequency_frames = summary_frequency_frames bus.instance_variable_get(:@frame_generator). instance_variable...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/frame_generator.rb
lib/ruby2600/frame_generator.rb
module Ruby2600 class FrameGenerator # A scanline "lasts" 228 "color clocks" (CLKs), of which 68 # are the horizontal blank period, and 160 are visible pixels HORIZONTAL_BLANK_CLK_COUNT = 68 VISIBLE_CLK_COUNT = 160 def initialize(cpu, tia, riot) @cpu = cpu @tia = tia @riot = ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/tia.rb
lib/ruby2600/tia.rb
module Ruby2600 class TIA attr_accessor :cpu, :riot, :scanline_stage, :late_reset_hblank attr_reader :reg include Constants def initialize # Real 2600 starts with random values (and Stella comments warn # about games that crash if we start with all zeros) @reg = Array.new(64) { ran...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/graphic.rb
lib/ruby2600/graphic.rb
require 'forwardable' # JRuby needs this module Ruby2600 class Graphic include Constants extend Forwardable def_delegators :@counter, :reset, :value, :old_value, :old_value= # These parameters are specific to each type of graphic (player, missile, ball or playfield) class << self attr_acce...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/cart.rb
lib/ruby2600/cart.rb
module Ruby2600 class Cart def initialize(rom_file) @bytes = File.open(rom_file, "rb") { |f| f.read }.unpack('C*') @bytes += @bytes if @bytes.count == 2048 end def [](address) @bytes[address] end def []=(address, value) end end end
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/constants.rb
lib/ruby2600/constants.rb
module Ruby2600 module Constants # TIA writable registers VSYNC = 0x00 VBLANK = 0x01 WSYNC = 0x02 RSYNC = 0x03 NUSIZ0 = 0x04 NUSIZ1 = 0x05 COLUP0 = 0x06 COLUP1 = 0x07 COLUPF = 0x08 COLUBK = 0x09 CTRLPF = 0x0A REFP0 = 0x0B REFP1 = 0x0C PF0 = 0x0D ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/player.rb
lib/ruby2600/player.rb
module Ruby2600 class Player < Graphic @graphic_delay = 5 @graphic_size = 8 @hmove_register = HMP0 @color_register = COLUP0 private def pixel_bit grp[7 - @graphic_bit] end def size case reg(NUSIZ0) & 0b111 when 0b101 then 2 when 0b111 then 4 else 1 ...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/riot.rb
lib/ruby2600/riot.rb
module Ruby2600 class RIOT include Constants def initialize @ram = Array.new(128) self[T1024T] = rand(256) # FIXME Stella says H.E.R.O. hangs if it is zero, check it out @portA = @portB = @swcha = @swchb = @swacnt = @swbcnt = 0 end def [](address) case address when 0x00...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/cpu.rb
lib/ruby2600/cpu.rb
module Ruby2600 class CPU attr_accessor :memory attr_accessor :pc, :a, :x, :y, :s attr_accessor :n, :v, :d, :i, :z, :c # Flags (P register): nv--dizc attr_accessor :halted # Simulates RDY (if true, clock is ignored) RESET_VECTOR = 0xFFFC BRK_VECTOR = 0xFFFE OPCODE_SIZE...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/counter.rb
lib/ruby2600/counter.rb
module Ruby2600 # Internal counters used by all TIA graphics to trigger drawing at appropriate time. # Horizontal position is implicitly tracked by the counter value, and movement is # implemented by making its cycle higher or lower than the current scanline. # # See: http://www.atarihq.com/danb/files/TIA_HW_...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/ball.rb
lib/ruby2600/ball.rb
module Ruby2600 class Ball < Graphic @graphic_delay = 4 @graphic_size = 1 @hmove_register = HMBL @color_register = COLUPF # Ball draws immediately when RESBL is strobed (other objects only do it # when their counter wraps around, i.e., on next scanline) def initialize(tia) super(ti...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/bus.rb
lib/ruby2600/bus.rb
module Ruby2600 class Bus include Constants def initialize(cpu, tia, cart, riot) @cpu = cpu @tia = tia @cart = cart @riot = riot @frame_generator = Ruby2600::FrameGenerator.new(cpu, tia, riot) @cpu.memory = self @tia.cpu = cpu @tia.riot = riot @riot_bi...
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
chesterbr/ruby2600
https://github.com/chesterbr/ruby2600/blob/7a947c978423b53e9770b54a86a594bcb37906ac/lib/ruby2600/missile.rb
lib/ruby2600/missile.rb
module Ruby2600 class Missile < Graphic @graphic_delay = 4 @graphic_size = 1 @hmove_register = HMM0 @color_register = COLUP0 private def pixel_bit reg(ENAM0)[1] end def size 1 << (reg(NUSIZ0) >> 4) end end end
ruby
MIT
7a947c978423b53e9770b54a86a594bcb37906ac
2026-01-04T17:54:37.265867Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/metadata.rb
metadata.rb
name 'nagios' maintainer 'Sous Chefs' maintainer_email 'help@sous-chefs.org' license 'Apache-2.0' description 'Installs and configures Nagios server' version '12.1.4' issues_url 'https://github.com/sous-chefs/nagios/issues' source_url 'https://github.com/sous-chefs/n...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/fixtures/cookbooks/nagios_test/metadata.rb
test/fixtures/cookbooks/nagios_test/metadata.rb
name 'nagios_test' maintainer 'Sander Botman' maintainer_email 'sbotman@schubergphilis.com' license 'Apache-2.0' description 'Contains Nagios configuration items' version '0.1.1' depends 'nagios'
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/fixtures/cookbooks/nagios_test/recipes/default.rb
test/fixtures/cookbooks/nagios_test/recipes/default.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios_test # Recipe:: default # # Copyright:: (C) 2015 Schuberg Philis. # # 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 #...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/server_package/default_test.rb
test/smoke/server_package/default_test.rb
if os.redhat? apache_bin = 'httpd' config_cgi_path = 'nagios/cgi-bin/config.cgi' path_config_dir = '/etc/nagios/conf.d' path_conf_dir = '/etc/nagios' service_name = 'nagios' elsif os.suse? apache_bin = 'httpd-prefork' config_cgi_path = 'cgi-bin/nagios3/config.cgi' path_config_dir = '/etc/...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/server_source/default_test.rb
test/smoke/server_source/default_test.rb
apache_bin = os.redhat? ? 'httpd' : 'apache2' config_cgi_path = 'nagios/cgi-bin/config.cgi' path_config_dir = '/etc/nagios/conf.d' path_conf_dir = '/etc/nagios' service_name = 'nagios' # Test Nagios Config describe file("#{path_config_dir}/commands.cfg") do its(:content) { should match 'check_all_hostgrou...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/default/nagios_website.rb
test/smoke/default/nagios_website.rb
title 'Nagios Website Checks' wget_cmd = 'wget -qO- --user=admin --password=admin http://localhost' install_method = input('install_method') ldap_auth = input('ldap_auth', value: false) cgi_cmd = if install_method == 'source' && os.family == 'debian' "#{wget_cmd}/cgi-bin/nagios" elsif os.family == 'redhat' ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/default/server.rb
test/smoke/default/server.rb
# Inspec test for recipe nagios::server # The Inspec reference, with examples and extensive documentation, can be # found at http://inspec.io/docs/reference/resources/ title 'Nagios Server Checks' install_method = input('install_method') vname = if install_method == 'source' 'nagios' elsif os.name == 'debia...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/swappable_config/default_test.rb
test/smoke/swappable_config/default_test.rb
path_conf_dir = if os.redhat? '/etc/nagios' else '/etc/nagios4' end describe file("#{path_conf_dir}/nagios.cfg") do it { should exist } its(:content) { should include '# Test that we can swap out config files via attributes' } end
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/pagerduty/default_test.rb
test/smoke/pagerduty/default_test.rb
if os.redhat? apache_bin = 'httpd' config_cgi_path = 'nagios/cgi-bin/config.cgi' path_config_dir = '/etc/nagios/conf.d' path_conf_dir = '/etc/nagios' service_name = 'nagios' else apache_bin = 'apache2' config_cgi_path = 'cgi-bin/nagios4/config.cgi' path_config_dir = '/etc/nagios4/conf.d' ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/test/smoke/pagerduty/pagerduty_test.rb
test/smoke/pagerduty/pagerduty_test.rb
if os.redhat? command_file = '/var/log/nagios/rw/nagios.cmd' pagerduty_cgi_dir = '/usr/lib64/nagios/cgi-bin' path_config_dir = '/etc/nagios/conf.d' perl_cgi_package = 'perl-CGI' plugin_dir = '/usr/lib64/nagios/plugins' else command_file = '/var/lib/nagios4/rw/nagios.cmd' pagerduty_cgi_...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/default.rb
recipes/default.rb
# # Author:: Joshua Sierles <joshua@37signals.com> # Author:: Joshua Timberman <joshua@chef.io> # Author:: Nathan Haneysmith <nathan@chef.io> # Author:: Seth Chisamore <schisamo@chef.io> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: default # # Copyright:: 2009, 37signals # Copyright 2009-2016, C...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/_load_default_config.rb
recipes/_load_default_config.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Recipe:: _load_default_config # # Copyright:: 2014, Sander Botman # # 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...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/server_source.rb
recipes/server_source.rb
# # Author:: Seth Chisamore <schisamo@chef.io> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: server_source # # Copyright:: 2011-2016, Chef Software, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/pagerduty.rb
recipes/pagerduty.rb
# # Author:: Jake Vanderdray <jvanderdray@customink.com> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: pagerduty # # Copyright:: 2011, CustomInk LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/apache.rb
recipes/apache.rb
# # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: apache # # 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.org/licenses/LICENSE-2.0 # # Unless req...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/server.rb
recipes/server.rb
# # Author:: Joshua Sierles <joshua@37signals.com> # Author:: Joshua Timberman <joshua@chef.io> # Author:: Nathan Haneysmith <nathan@chef.io> # Author:: Seth Chisamore <schisamo@chef.io> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: server # # Copyright:: 2009, 37signals # Copyright 2009-2016, Ch...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/_load_databag_config.rb
recipes/_load_databag_config.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Recipe:: _load_databag_config # # Copyright:: 2014, Sander Botman # # 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...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/server_package.rb
recipes/server_package.rb
# # Author:: Seth Chisamore <schisamo@chef.io> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: server_package # # Copyright:: 2011-2016, Chef Software, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/recipes/nginx.rb
recipes/nginx.rb
# # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Recipe:: nginx # # 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.org/licenses/LICENSE-2.0 # # Unless requ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/attributes/default.rb
attributes/default.rb
# # Author:: Seth Chisamore <schisamo@chef.io> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Attributes:: default # # Copyright:: 2011-2016, Chef Software, Inc. # Copyright:: 2013-2014, Limelight Networks, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/attributes/config.rb
attributes/config.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Attributes:: config # # Copyright:: 2015, Sander Botman # # 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 # # h...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/spec/source_spec.rb
spec/source_spec.rb
require 'spec_helper' describe 'nagios::default' do cached(:chef_run) do ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '20.04') do |node, server| node.normal['nagios']['server']['install_method'] = 'source' server.create_data_bag('users', 'user1' => {...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/spec/package_spec.rb
spec/package_spec.rb
require 'spec_helper' describe 'nagios::default' do cached(:chef_run) do ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '20.04') do |_node, server| server.create_data_bag('users', 'user1' => { 'id' => 'tsmith', ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/spec/default_spec.rb
spec/default_spec.rb
require 'spec_helper' describe 'nagios::default' do cached(:chef_run) do ChefSpec::ServerRunner.new( platform: 'ubuntu', version: '20.04', step_into: %w(nagios_conf nagios_timeperiod) ) do |_node, server| server.create_data_bag( 'users', 'user1' => { 'id' => 'tsmith', ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/spec/spec_helper.rb
spec/spec_helper.rb
require 'chefspec' require 'chefspec/berkshelf' RSpec.configure do |config| config.color = true # Use color in STDOUT config.formatter = :documentation # Use the specified formatter config.log_level = :error # Avoid deprecation notice SPAM end
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/hostdependency.rb
libraries/hostdependency.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: hostdependency # # Copyright:: 2014, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/command.rb
libraries/command.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: command # # Copyright:: 2014, Sander Botman # # 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 # # htt...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/resource.rb
libraries/resource.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: resource # # Copyright:: 2015, Sander Botman # # 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 # # ht...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/default.rb
libraries/default.rb
# # Author:: Joshua Sierles <joshua@37signals.com> # Author:: Tim Smith <tsmith@chef.io> # Cookbook:: nagios # Library:: default # # Copyright:: 2009, 37signals # # 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 ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/servicedependency.rb
libraries/servicedependency.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: servicedependency # # Copyright:: 2014, Sander Botman # # 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 #...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/contactgroup.rb
libraries/contactgroup.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: contactgroup # # Copyright:: 2014, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/host.rb
libraries/host.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: host # # Copyright:: 2014, Sander Botman # # 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:/...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/hostescalation.rb
libraries/hostescalation.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: hostescalation # # Copyright:: 2014, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/servicegroup.rb
libraries/servicegroup.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: servicegroup # # Copyright:: 2014, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/data_bag_helper.rb
libraries/data_bag_helper.rb
require 'chef/search/query' # simplified access to databags in the nagios cookbook class NagiosDataBags attr_accessor :bag_list def initialize(bag_list = Chef::DataBag.list) @bag_list = bag_list end # Returns an array of data bag items or an empty array # Avoids unecessary calls to search by checking a...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/users_helper.rb
libraries/users_helper.rb
require 'chef/log' require 'chef/search/query' # Simplify access to list of all valid Nagios users class NagiosUsers attr_accessor :users def initialize(node) @node = node @users = [] user_databag = node['nagios']['users_databag'].to_sym group = node['nagios']['users_databag_group'] if node[...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/helpers.rb
libraries/helpers.rb
module NagiosCookbook module Helpers def nagios_vname if !node['nagios']['server'].nil? && node['nagios']['server']['install_method'] == 'source' 'nagios' elsif platform_family?('rhel') 'nagios' elsif platform?('debian') 'nagios4' elsif platform?('ubuntu') '...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/serviceescalation.rb
libraries/serviceescalation.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: serviceescalation # # Copyright:: 2014, Sander Botman # # 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 #...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/base.rb
libraries/base.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: base # # Copyright:: 2014, Sander Botman # # 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:/...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/timeperiod.rb
libraries/timeperiod.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: timeperiod # # Copyright:: 2014, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/hostgroup.rb
libraries/hostgroup.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: hostgroup # # Copyright:: 2014, Sander Botman # # 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 # # h...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/service.rb
libraries/service.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: service # # Copyright:: 2014, Sander Botman # # 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 # # htt...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/nagios.rb
libraries/nagios.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: nagios # # Copyright:: 2014, Sander Botman # # 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...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/contact.rb
libraries/contact.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: contact # # Copyright:: 2014, Sander Botman # # 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 # # htt...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/libraries/custom_option.rb
libraries/custom_option.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Library:: custom_option # # Copyright:: 2015, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/hostdependency.rb
resources/hostdependency.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: hostdependency # # Copyright:: 2015, Sander Botman # # 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 # #...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/command.rb
resources/command.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: : nagios # Resource:: : command # # Copyright:: 2015, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/resource.rb
resources/resource.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: resource # # Copyright:: 2015, Sander Botman # # 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 # # h...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/servicedependency.rb
resources/servicedependency.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: servicedependency # # Copyright:: 2015, Sander Botman # # 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 ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/contactgroup.rb
resources/contactgroup.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: contactgroup # # Copyright:: 2015, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/host.rb
resources/host.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: host # # Copyright:: 2015, Sander Botman # # 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:...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/hostescalation.rb
resources/hostescalation.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: hostescalation # # Copyright:: 2015, Sander Botman # # 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 # #...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/servicegroup.rb
resources/servicegroup.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: servicegroup # # Copyright:: 2015, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/serviceescalation.rb
resources/serviceescalation.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: serviceescalation # # Copyright:: 2015, Sander Botman # # 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 ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/timeperiod.rb
resources/timeperiod.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: : nagios # Resource:: : timeperiod # # Copyright:: 2015, Sander Botman # # 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 #...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/hostgroup.rb
resources/hostgroup.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: hostgroup # # Copyright:: 2015, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/conf.rb
resources/conf.rb
# # Author:: Joshua Sierles <joshua@37signals.com> # Author:: Joshua Timberman <joshua@chef.io> # Author:: Nathan Haneysmith <nathan@chef.io> # Author:: Seth Chisamore <schisamo@chef.io> # Cookbook:: nagios # Resource:: nagios_conf # # Copyright:: 2009, 37signals # Copyright:: 2009-2016, Chef Software, Inc. # # License...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/service.rb
resources/service.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: nagios # Resource:: service # # Copyright:: 2015, Sander Botman # # 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 # # ht...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
sous-chefs/nagios
https://github.com/sous-chefs/nagios/blob/9f5601ca67c5e847078c20a2956556eab892a75d/resources/contact.rb
resources/contact.rb
# # Author:: Sander Botman <sbotman@schubergphilis.com> # Cookbook:: : nagios # Resource:: : contact # # Copyright:: 2015, Sander Botman # # 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 # # ...
ruby
Apache-2.0
9f5601ca67c5e847078c20a2956556eab892a75d
2026-01-04T17:54:34.235002Z
false
devalot/ror-example
https://github.com/devalot/ror-example/blob/2acf777ef9939b6f53c0387f9b2620f76016ae0c/app/helpers/sessions_helper.rb
app/helpers/sessions_helper.rb
module SessionsHelper end
ruby
Unlicense
2acf777ef9939b6f53c0387f9b2620f76016ae0c
2026-01-04T17:54:41.674960Z
false
devalot/ror-example
https://github.com/devalot/ror-example/blob/2acf777ef9939b6f53c0387f9b2620f76016ae0c/app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper end
ruby
Unlicense
2acf777ef9939b6f53c0387f9b2620f76016ae0c
2026-01-04T17:54:41.674960Z
false
devalot/ror-example
https://github.com/devalot/ror-example/blob/2acf777ef9939b6f53c0387f9b2620f76016ae0c/app/helpers/cars_helper.rb
app/helpers/cars_helper.rb
module CarsHelper end
ruby
Unlicense
2acf777ef9939b6f53c0387f9b2620f76016ae0c
2026-01-04T17:54:41.674960Z
false
devalot/ror-example
https://github.com/devalot/ror-example/blob/2acf777ef9939b6f53c0387f9b2620f76016ae0c/app/helpers/refuels_helper.rb
app/helpers/refuels_helper.rb
module RefuelsHelper end
ruby
Unlicense
2acf777ef9939b6f53c0387f9b2620f76016ae0c
2026-01-04T17:54:41.674960Z
false
devalot/ror-example
https://github.com/devalot/ror-example/blob/2acf777ef9939b6f53c0387f9b2620f76016ae0c/app/controllers/refuels_controller.rb
app/controllers/refuels_controller.rb
class RefuelsController < ApplicationController ############################################################################## # Establish a filter that will run before any of the actions in this # controller run. Its job will be to create a `@car` instance # variable that we can use to access refuel object...
ruby
Unlicense
2acf777ef9939b6f53c0387f9b2620f76016ae0c
2026-01-04T17:54:41.674960Z
false