educatic-info/bin/nextcloud/02-nextcloud-test-conn.rb

16 lines
329 B
Ruby
Raw Permalink Normal View History

2022-12-01 15:22:21 +01:00
#!/usr/bin/env ruby
require "debug"
require "dotenv"
require "nextcloud"
settings = Dotenv.load
nextcloud = Nextcloud.new(
url: settings["URL"],
username: settings["USERNAME"],
password: settings["PASSWORD"]
)
webdav = nextcloud.webdav
puts "* webdav.directory(@path): #{webdav.directory.instance_variable_get(:@path)}"