module Fezzik
  module DSL
    def destination(name, &block) Fezzik.destination(name, &block) end
    def env(*args) Fezzik.env(*args) end
    def capture_output(&block) Fezzik::Util.capture_output(&block) end
  end
end

module Fezzik
  module DSL
    # This is necessary to override Rake::RemoteTasks's globally eval'ed method definitions.
    def self.included(klass)
      klass.class_eval do
        def role(*args) Fezzik.role(*args) end
        def remote_task(*args, &block) Fezzik.remote_task(*args, &block) end
      end
    end
    def destination(name, &block) Fezzik.destination(name, &block) end
    def env(*args) Fezzik.env(*args) end
    def capture_output(&block) Fezzik::Util.capture_output(&block) end
  end
end

Add DSLs for custom 'role' and 'remote_task' methods
Add DSLs for custom 'role' and 'remote_task' methods
