Class: Escualo::Plugin::Docker

Inherits:
Object
  • Object
show all
Defined in:
lib/escualo/plugin/docker.rb

Instance Method Summary collapse

Instance Method Details

#check(ssh, _options) ⇒ Object



7
8
9
# File 'lib/escualo/plugin/docker.rb', line 7

def check(ssh, _options)
  ssh.exec!('docker -v').include? 'Docker version'
end

#run(ssh, options) ⇒ Object



3
4
5
# File 'lib/escualo/plugin/docker.rb', line 3

def run(ssh, options)
  ssh.perform! 'apt-get install -y docker.io', options
end