class HuginnAgent

Constants

VERSION

Attributes

branch[RW]
remote[RW]

Public Class Methods

load(*paths) click to toggle source
# File lib/huginn_agent.rb, line 13
def load(*paths)
  paths.each do |path|
    load_paths << path
  end
end
load_tasks(options = {}) click to toggle source
# File lib/huginn_agent.rb, line 7
def load_tasks(options = {})
  @branch = options[:branch] || 'master'
  @remote = options[:remote] || 'https://github.com/cantino/huginn.git'
  Rake.add_rakelib File.join(File.expand_path('../', __FILE__), 'tasks')
end
register(*paths) click to toggle source
# File lib/huginn_agent.rb, line 19
def register(*paths)
  paths.each do |path|
    agent_paths << path
  end
end
require!() click to toggle source
# File lib/huginn_agent.rb, line 25
def require!
  load_paths.each do |path|
    require path
  end
  agent_paths.each do |path|
    require path
    Agent::TYPES << "Agents::#{File.basename(path.to_s).camelize}"
  end
end

Private Class Methods

agent_paths() click to toggle source
# File lib/huginn_agent.rb, line 41
def agent_paths
  @agent_paths ||= []
end
load_paths() click to toggle source
# File lib/huginn_agent.rb, line 37
def load_paths
  @load_paths ||= []
end