69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# File 'lib/wordmove/movefile.rb', line 69
def secrets
options = fetch(false)
secrets = []
options.each_key do |env|
secrets << options.dig(env, :database, :password)
secrets << options.dig(env, :database, :host)
secrets << options.dig(env, :vhost)
secrets << options.dig(env, :ssh, :password)
secrets << options.dig(env, :ssh, :host)
secrets << options.dig(env, :ftp, :password)
secrets << options.dig(env, :ftp, :host)
secrets << options.dig(env, :wordpress_path)
end
secrets.compact.delete_if(&:empty?)
end
|