lib/shelly/app.rb in shelly-0.4.10 vs lib/shelly/app.rb in shelly-0.4.11
- old
+ new
@@ -234,10 +234,14 @@
def statistics
@stats ||= shelly.statistics(code_name)
end
+ def system_user
+ attributes["system_user"]
+ end
+
def web_server_ip
attributes["web_server_ip"]
end
def git_info
@@ -396,10 +400,10 @@
self.ruby_version = jruby? ? 'jruby' : response["ruby_version"]
self.environment = response["environment"]
end
def persistent_disk
- "/home/#{code_name}/disk"
+ "/home/#{system_user}/disk"
end
def jruby?
RUBY_PLATFORM == 'java'
end