Class: Escualo::Plugin::Node
- Inherits:
-
Object
- Object
- Escualo::Plugin::Node
- Defined in:
- lib/escualo/plugin/node.rb
Instance Method Summary collapse
Instance Method Details
#check(ssh) ⇒ Object
11 12 13 |
# File 'lib/escualo/plugin/node.rb', line 11 def check(ssh) ssh.shell.exec!('nvm use node').include? 'Now using node v4.2.4' end |
#run(ssh, options) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/escualo/plugin/node.rb', line 3 def run(ssh, ) ssh.shell.perform! %Q{ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash && \ source ~/.bashrc && \ nvm install 4.2.4 }, end |