Method: CommonFunctions.write_nodes_json

Defined in:
lib/common_functions.rb

.write_nodes_json(new_role_info, keyname) ⇒ Object

Writes the given JSON to the ~/.appscale directory so that we can read it later and determine what nodes run what services.



806
807
808
809
# File 'lib/common_functions.rb', line 806

def self.write_nodes_json(new_role_info, keyname)
  filename = File.expand_path("~/.appscale/locations-#{keyname}.json")
  self.write_file(filename, JSON.dump(new_role_info))
end