Class: Wemux::Pair::Commands::CheckForWemux
- Defined in:
- lib/wemux/pair/commands/check_for_wemux.rb
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Wemux::Pair::Commands::Command
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/wemux/pair/commands/check_for_wemux.rb', line 7 def execute return if in_wemux? if system("command -v wemux > /dev/null 2>&1") puts "Please run from within wemux" else puts "Please install wemux and run from within it: https://github.com/zolrath/wemux" end exit 1 end |