module Stir
Constants
- VERSION
Attributes
environment[RW]
path[RW]
version[RW]
Public Class Methods
configuration()
click to toggle source
# File lib/stir/base.rb, line 24 def configuration instance_values.symbolize_keys end
configure() { |self| ... }
click to toggle source
# File lib/stir/base.rb, line 19 def configure yield self load_clients end
Private Class Methods
load_clients()
click to toggle source
# File lib/stir/base.rb, line 30 def load_clients validate_path_to("#{@path}/clients") Dir.glob("#{@path}/clients/**/*.rb") { |file| require file } end
validate_path_to(directory)
click to toggle source
# File lib/stir/base.rb, line 35 def validate_path_to(directory) raise(PathNotFoundError, "Invalid path for Stir clients: #{directory}") unless File.directory?(directory) end