Class: HuginnAgent
- Inherits:
-
Object
show all
- Defined in:
- lib/huginn_agent.rb,
lib/huginn_agent/cli.rb,
lib/huginn_agent/helper.rb,
lib/huginn_agent/cli/new.rb,
lib/huginn_agent/version.rb,
lib/huginn_agent/spec_runner.rb
Defined Under Namespace
Classes: CLI, Helper, SpecRunner
Constant Summary
collapse
- VERSION =
'0.6.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.branch ⇒ Object
Returns the value of attribute branch.
5
6
7
|
# File 'lib/huginn_agent.rb', line 5
def branch
@branch
end
|
.remote ⇒ Object
Returns the value of attribute remote.
5
6
7
|
# File 'lib/huginn_agent.rb', line 5
def remote
@remote
end
|
Class Method Details
.load(*paths) ⇒ Object
13
14
15
16
17
|
# File 'lib/huginn_agent.rb', line 13
def load(*paths)
paths.each do |path|
load_paths << path
end
end
|
.load_tasks(options = {}) ⇒ Object
7
8
9
10
11
|
# 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) ⇒ Object
19
20
21
22
23
|
# File 'lib/huginn_agent.rb', line 19
def register(*paths)
paths.each do |path|
agent_paths << path
end
end
|
.require! ⇒ Object
25
26
27
28
29
30
31
32
33
|
# 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
|