Class: Escualo::Plugin::Haskell

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

Instance Method Summary collapse

Instance Method Details

#check(ssh, _options) ⇒ Object



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

def check(ssh, _options)
  ssh.exec!('ghc --version').include? 'The Glorious Glasgow Haskell Compilation System'
end

#run(ssh, options) ⇒ Object



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

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