Module: Blower

Defined in:
lib/blower.rb,
lib/blower/host.rb,
lib/blower/local.rb,
lib/blower/errors.rb,
lib/blower/logger.rb,
lib/blower/plugin.rb,
lib/blower/target.rb,
lib/blower/context.rb,
lib/blower/version.rb

Overview

Top-level module for all things blower.

Defined Under Namespace

Classes: Context, ExecuteError, FailedCommand, Host, Local, Logger, Plugin, Target, TaskNotFound

Constant Summary collapse

VERSION =
"7"

Class Method Summary collapse

Class Method Details

.plugin(name, &body) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/blower/plugin.rb', line 14

def self.plugin (name, &body)
  Class.new(Plugin, &body).tap do |klass|
    Context.send :define_method, name do
      klass.new(self)
    end
  end
end