Sha256: 52dea268d8f3e88004dd9d71c832699b5d8f3c88c7b0374d173f411ca385641f
Contents?: true
Size: 681 Bytes
Versions: 7
Compression:
Stored size: 681 Bytes
Contents
module Pvcglue class Packages class DirShared < Pvcglue::Packages def installed? result = connection.run_get_stdout(user_name, '', "stat --format=%U:%G:%a #{Pvcglue.cloud.deploy_to_app_shared_dir}").strip result == "#{user_name}:#{user_name}:2755" end def install! dir = Pvcglue.cloud.deploy_to_app_shared_dir # used following as a guide for next line: http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/ connection.run!(user_name, '', "mkdir -p #{dir} && chown #{user_name}:#{user_name} #{dir} && chmod 0755 #{dir} && umask 0002 && chmod g+s #{dir}") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems