Class: DevSystem::ControllerShell
- Inherits:
-
Shell
- Object
- Liza::Unit
- Liza::Controller
- Shell
- DevSystem::ControllerShell
- Defined in:
- lib/dev_system/sub/shell/shells/controller_shell.rb
Class Method Summary collapse
Methods inherited from Shell
cruby?, engine, jruby?, linux?, mac?, os, ruby_version, unix?, windows?
Methods inherited from Liza::Controller
color, inherited, on_connected
Methods inherited from Liza::Unit
const_missing, division, part, system, #system, test_class
Class Method Details
.places_for(controller) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/dev_system/sub/shell/shells/controller_shell.rb', line 5 def self.places_for(controller) ret = { "app" => "#{App.relative_path}/#{controller.system.token}/#{controller.plural}", } AppShell.writable_systems.each do |system_key, system| ret[system_key.to_s] = "lib/#{system_key}_system/#{controller.plural}" system.subs.each do |sub| ret["#{system_key}/#{sub}"] = "lib/#{system_key}_system/sub/#{sub}/#{controller.plural}" end end ret end |