Sha256: bbb291c7802e2fb0905a2023a746627b34375e9c79fe98a16792c854c7b6d314
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module LayerVault class Client module Folders def folder(organization_name, project_name, path) get "#{organization_name}/#{project_name}/#{path}" end def delete_folder(organization_name, project_name, path) delete "#{organization_name}/#{project_name}/#{path}" end def create_folder(organization_name, project_name, path) post "#{organization_name}/#{project_name}/#{path}" end def move_folder(organization_name, project_name, path, options={}) raise ClientParamsError.new("You must specify the :to option for the destination folder.") unless options.fetch(:to, nil) post "#{organization_name}/#{project_name}/#{path}/move", options end def change_folder_color(organization_name, project_name, path, options={}) raise ClientParamsError.new("You must specify the color option for the new color to apply to the folder.") unless options.fetch(:color, nil) put "#{organization_name}/#{project_name}/#{path}", options end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
layervault-0.1.2 | lib/layervault/client/folders.rb |
layervault-0.1.1 | lib/layervault/client/folders.rb |
layervault-0.1.0 | lib/layervault/client/folders.rb |