Sha256: f35f6aba37107bb3963047c5bf219d1b4b0cee7fa82b19e6dcda752dcc09a804

Contents?: true

Size: 601 Bytes

Versions: 2

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true
my_code = <<'RUBY_CODE'
  if type == 'failed'
    system "ssh 192.168.1.106 '~/bin/keyboard_leds -c1 >/dev/null'"
    system "ssh 192.168.1.106 'afplay ~/.fail.wav'"
  end
  if type == 'success'
    system "ssh 192.168.1.106 '~/bin/keyboard_leds -c0 >/dev/null'"
    system "ssh 192.168.1.106 'afplay ~/.success.wav'"
  end
RUBY_CODE

notification :eval_notifier, code: my_code

guard 'rspec', cli: '--color --format doc' do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { 'spec' }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
akero-1.1.1 Guardfile
akero-1.1.0 Guardfile