Class: Artoo::Commands::Install
- Inherits:
-
Artoo::Commands
- Object
- Artoo::Commands
- Artoo::Commands::Install
- Defined in:
- lib/artoo/commands/install.rb
Instance Method Summary collapse
Instance Method Details
#command(file) ⇒ Object
25 26 27 28 |
# File 'lib/artoo/commands/install.rb', line 25 def command(file) empty_directory Install.install_dir FileUtils.cp(file, Install.install_dir) end |
#socat ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# 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 |