Module: Escualo::Plugin

Defined in:
lib/escualo/plugin.rb,
lib/escualo/plugin/node.rb,
lib/escualo/plugin/mongo.rb,
lib/escualo/plugin/monit.rb,
lib/escualo/plugin/nginx.rb,
lib/escualo/plugin/docker.rb,
lib/escualo/plugin/rabbit.rb,
lib/escualo/plugin/haskell.rb,
lib/escualo/plugin/postgre.rb

Defined Under Namespace

Classes: Docker, Haskell, Mongo, Monit, Nginx, Node, Postgre, Rabbit

Constant Summary collapse

PLUGINS =
%w(node haskell docker postgre nginx rabbit mongo monit)

Class Method Summary collapse

Class Method Details

.load(name) ⇒ Object



5
6
7
# File 'lib/escualo/plugin.rb', line 5

def self.load(name)
  "Escualo::Plugin::#{name.capitalize}".constantize.new
end

.run_and_check(plugin, ssh, options) ⇒ Object



9
10
11
12
# File 'lib/escualo/plugin.rb', line 9

def self.run_and_check(plugin, ssh, options)
  plugin.run ssh, options
  plugin.check ssh, options
end