Class: Syncthing::Helper::CLI::FolderCreateCommand
- Inherits:
-
AbstractCommand
- Object
- Clamp::Command
- AbstractCommand
- Syncthing::Helper::CLI::FolderCreateCommand
- Defined in:
- lib/syncthing/helper/cli/folder_command.rb
Instance Method Summary collapse
Methods included from InstanceMethods
#col, #delete_record, #query, #tabled_stdout, #trigger_updates
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/syncthing/helper/cli/folder_command.rb', line 7 def execute super folders.each do |f| folder_id, folder_path, folder_label = f.split ':' folder = {"id" => folder_id, "path" => folder_path, "label" => folder_label, "type" =>"readwrite", "devices" => [], "maxConflicts" => -1} API::Firestore.doc('folders/' + folder_id).set(folder) end end |