lib/alamojoe.rb in alamojoe-0.2.9 vs lib/alamojoe.rb in alamojoe-0.2.10

- old
+ new

@@ -17,11 +17,14 @@ attach_function :configure, [:string], :int end module Alamojoe def self.configure(args) + puts("[INFO] [fnGuard] Ruby SDK version: " + Alamojoe::VERSION) + if args.is_a?(Hash) args[:sdk_version] = Alamojoe::VERSION + return AlamojoeCLib.configure(args.to_json) else err_msg = '[ERROR] [fnGuard] configuration error. config values must be a hash, i.e., {policy_group_name: "my_policy_group_name"}' puts(err_msg) raise err_msg