Class: Artoo::Commands::Install

Inherits:
Artoo::Commands show all
Defined in:
lib/artoo/commands/install.rb

Instance Method Summary collapse

Instance Method Details

#socatObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/artoo/commands/install.rb', line 10

def socat
  case os 
  when :linux
    run("sudo apt-get update && sudo apt-get install socat")
  when :macosx
    Bundler.with_clean_env do
      run("brew install socat")
    end
  else
    say "OS not yet supported..."
  end
end