lib/guard/notifiers/tmux.rb
# Test if currently running in a Tmux session
#
# @param [Boolean] silent true if no error messages should be shown
# @param [Hash] options notifier options
# @return [Boolean] the availability status
#
Test if currently running in a Tmux session
Test if currently running in a Tmux session
def available?(silent = false, options = {})
        if ENV[options.fetch(:tmux_environment, DEFAULTS[:tmux_environment])].nil?
          ::Guard::UI.error 'The :tmux notifier runs only on when Guard is executed inside of a tmux session.' unless silent
          false
        else
          true
        end
      end
def available? ( silent = false , options = { } ) if ENV [ options . fetch ( :tmux_environment , DEFAULTS [ :tmux_environment ] ) ] . nil? :: Guard :: UI . error 'The :tmux notifier runs only on when Guard is executed inside of a tmux session.' unless silent false else true end end
Test if currently running in a Tmux session
Test if currently running in a Tmux session
the availability status
the availability status
Boolean
silent
options
options notifier options
options notifier options