Class: AutomateIt::TemplateManager::ERB

Inherits:
BaseDriver show all
Defined in:
lib/automateit/template_manager/erb.rb

Overview

TemplateManager::ERB

Renders ERB templates for TemplateManager.

Constant Summary

Constants inherited from Plugin::Driver

Plugin::Driver::BASE_DRIVER_NAME

Constants included from Constants

Constants::HELPERS_DIR, Constants::INSTALL_DIR, Constants::PERROR, Constants::PEXEC, Constants::PNOTE, Constants::WARNING_BOILERPLATE

Instance Attribute Summary

Attributes inherited from BaseDriver

#default_check

Attributes inherited from Plugin::Driver

#manager

Attributes inherited from Common

#interpreter

Instance Method Summary collapse

Methods inherited from BaseDriver

#setup

Methods inherited from Plugin::Driver

abstract_driver, #available?, base_driver, base_driver?, depends_on, inherited, manager_token, #setup

Methods inherited from Plugin::Base

#setup, #token, token

Methods inherited from Common

#initialize, #log, #nitpick, #noop, #noop=, #noop?, #preview, #preview=, #preview?, #preview_for, #setup, #superuser?, #writing, #writing=, #writing?

Constructor Details

This class inherits a constructor from AutomateIt::Common

Instance Method Details

#render(*options) ⇒ Object

See documentation for TemplateManager#render



12
13
14
15
16
# File 'lib/automateit/template_manager/erb.rb', line 12

def render(*options)
  return _render_helper(*options) do |o|
    HelpfulERB.new(o[:text], o[:filename]).result(o[:binder])
  end
end

#suitability(method, *args) ⇒ Object

:nodoc:



7
8
9
# File 'lib/automateit/template_manager/erb.rb', line 7

def suitability(method, *args) # :nodoc:
  return 1
end