Module: Hyraft::Rule

Defined in:
lib/hyraft/rule.rb,
lib/hyraft/rule/command.rb,
lib/hyraft/rule/version.rb,
lib/hyraft/rule/jwt/jwt_command.rb,
lib/hyraft/rule/base/in_api_command.rb,
lib/hyraft/rule/circuit/port_command.rb,
lib/hyraft/rule/base/out_data_command.rb,
lib/hyraft/rule/circuit/engine_command.rb,
lib/hyraft/rule/connectors/cable_command.rb,
lib/hyraft/rule/router/api_routes_command.rb,
lib/hyraft/rule/router/web_routes_command.rb,
lib/hyraft/rule/template/template_command.rb

Defined Under Namespace

Modules: Base, Circuit, Connectors, Jwt, Router, Template Classes: Command, Error

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.find_app_rootObject



22
23
24
25
26
27
28
29
30
# File 'lib/hyraft/rule.rb', line 22

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