Module: Deployku::Engine
Defined Under Namespace
Classes: MissingException
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.engines ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/deployku/engine.rb', line 13
def self.engines
engs = []
Deployku::Plugin.plugins.each do |plugin|
engs << plugin if plugin.name =~ /^Deployku::.*?Engine$/
end
engs
end
|
.find_engine(name) ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/deployku/engine.rb', line 5
def self.find_engine(name)
plugin_name = "Deployku::#{name.capitalize}Engine"
Deployku::Plugin.plugins.each do |plugin|
return plugin if plugin.name == plugin_name
end
nil
end
|
.method_missing(method, *args) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/deployku/engine.rb', line 21
def self.method_missing(method, *args)
engine = find_engine(Deployku::Config.engine)
raise MissingException.new("no engine '#{Deployku::Config.engine}' found") unless engine
eng = engine.new
eng.send(method, *args)
end
|
Instance Method Details
#ip(app_hash) ⇒ Object
52
53
54
|
# File 'lib/deployku/engine.rb', line 52
def ip(app_hash)
puts 'not implemented'
end
|
#logs(app_hash) ⇒ Object
40
41
42
|
# File 'lib/deployku/engine.rb', line 40
def logs(app_hash)
puts 'not implemented'
end
|
#rebuild(app_name, dir, nocache) ⇒ Object
44
45
46
|
# File 'lib/deployku/engine.rb', line 44
def rebuild(app_name, dir, nocache)
puts 'not implemented'
end
|
#run(app_name, app_dir, *cmd) ⇒ Object
32
33
34
|
# File 'lib/deployku/engine.rb', line 32
def run(app_name, app_dir, *cmd)
puts 'not implemented'
end
|
#running?(app_hash) ⇒ Boolean
48
49
50
|
# File 'lib/deployku/engine.rb', line 48
def running?(app_hash)
puts 'not implemented'
end
|
#start(app_name, app_dir) ⇒ Object
28
29
30
|
# File 'lib/deployku/engine.rb', line 28
def start(app_name, app_dir)
puts 'not implemented'
end
|
#stop(app_hash) ⇒ Object
36
37
38
|
# File 'lib/deployku/engine.rb', line 36
def stop(app_hash)
puts 'not implemented'
end
|