class Artoo::Commands::Install

Public Instance Methods

command(file) click to toggle source
# File lib/artoo/commands/install.rb, line 25
def command(file)
  empty_directory Install.install_dir
  FileUtils.cp(file, Install.install_dir)
end
socat() click to toggle source
# File lib/artoo/commands/install.rb, line 11
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