diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/lib/erlang/node.rb b/lib/erlang/node.rb index 05b981d..60c368d 100644 --- a/lib/erlang/node.rb +++ b/lib/erlang/node.rb @@ -92,7 +92,7 @@ def self.rpc_call(node,port,mod,fun,args) # Get the Cookie from the home directory def self.get_cookie # ... I did it all for the cookie, come on the cookie ... - fp = File.expand_path("~#{ENV['USER']}/.erlang.cookie") + fp = File.expand_path("#{ENV['HOME']}/.erlang.cookie") fh = File.open(fp,'r') fh.readline.strip end