Sha256: cb440b33b2e978c4e1bc0dabbc1af39d7c0564f2d22f330ced42d1b2498f7460

Contents?: true

Size: 449 Bytes

Versions: 13

Compression:

Stored size: 449 Bytes

Contents

module AgileNotifier
  class Player
    class << self
      def play_on_linux(file)
        # play command comes from sox package, not pre-installed
        system("play #{file}")
      end

      def play_on_osx(file)
        system("afplay #{file}")
      end

      def play_on_windows(file)
        raise(NotImplementedError, "Method [#{__method__}] is empty, please implement", caller)
      end
    end

    private_class_method :new
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
agile_notifier-3.1.2 lib/agile_notifier/player.rb
agile_notifier-3.0.2 lib/agile_notifier/player.rb
agile_notifier-3.0.1 lib/agile_notifier/player.rb
agile_notifier-3.0.0 lib/agile_notifier/player.rb
agile_notifier-2.1.4 lib/agile_notifier/player.rb
agile_notifier-2.1.3 lib/agile_notifier/player.rb
agile_notifier-2.1.2 lib/agile_notifier/player.rb
agile_notifier-2.1.1 lib/agile_notifier/player.rb
agile_notifier-2.1 lib/agile_notifier/player.rb
agile_notifier-2.0 lib/agile_notifier/player.rb
agile_notifier-1.1.1 lib/agile_notifier/player.rb
agile_notifier-1.1 lib/agile_notifier/player.rb
agile_notifier-1.0 lib/agile_notifier/player.rb