lib/alamojoe.rb in alamojoe-0.2.8 vs lib/alamojoe.rb in alamojoe-0.2.9
- old
+ new
@@ -17,15 +17,12 @@
attach_function :configure, [:string], :int
end
module Alamojoe
def self.configure(args)
- puts('args', args)
- puts('args.class', args.class)
-
if args.is_a?(Hash)
args[:sdk_version] = Alamojoe::VERSION
- return Alamojoe.configure(args.to_json)
+ 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
end