Module: Hyraft::Rule
- Defined in:
- lib/hyraft/rule.rb,
lib/hyraft/rule/command.rb,
lib/hyraft/rule/version.rb,
lib/hyraft/rule/assemble_command.rb,
lib/hyraft/rule/template_command.rb,
lib/hyraft/rule/disassemble_command.rb,
lib/hyraft/rule/engine/port_command.rb,
lib/hyraft/rule/engine/source_command.rb,
lib/hyraft/rule/engine/circuit_command.rb,
lib/hyraft/rule/adapter_request/web_adapter_command.rb,
lib/hyraft/rule/adapter_exhaust/data_gateway_command.rb,
lib/hyraft/rule/adapter_request/remove_adapter_command.rb
Defined Under Namespace
Modules: AdapterExhaust, AdapterRequest Classes: AssembleCommand, CircuitCommand, Command, DisassembleCommand, Error, PortCommand, RemoveAdapterCommand, SourceCommand, TemplateCommand
Constant Summary collapse
- VERSION =
"0.1.0.alpha2"
Class Method Summary collapse
Class Method Details
.find_app_root ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/hyraft/rule.rb', line 30 def self.find_app_root dir = Dir.pwd while dir != '/' boot_path = File.join(dir, 'boot.rb') return dir if File.exist?(boot_path) dir = File.dirname(dir) end nil end |