-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathARDplist_usage.rb
58 lines (39 loc) · 1.7 KB
/
ARDplist_usage.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/ruby
#this script must be in the same directory as ARDplist.rb
require './ARDplist'
#========================================================
#To create a new command as an example remove the keyworda =begin, and =end and then run the script
=begin
newcommand = ARD::Command.new(
"folder1",#folder name
"version", #command name
true, #see output
'sw_vers',#script
"root", # user to run command as
1) #select user to run command as radio button
ARD.create_folder(newcommand) #creates a new folder named "folder1" with a command named "version"
=end
#========================================================
#After you have a folder and command create,
#you can use the commands below to move positions,
#rename, or delete commands and folders
#list all ARD options
#puts ARD.options
#list all folders
#puts ARD.list_folders
#list folder index or physical position
#puts ARD.folder_index("folder1")
#move position of exisiting folder. arguments are (origiinal_position, new_position), expects numbers as arguments
#ARD.move_folder(1, 0)
#creates a visual space by using --------------, arguments are (index you want the spacer at)
#ARD.create_spacer(1)
#rename an exisiting folder. aguments are (oldname, newname)
#ARD.rename_folder("folder1", "folder0")
#Rename a command, arguments are ("folder_name", "orignialcommandname", "newcommandname")
#ARD.rename_command("Admin Commands", "list of users", "all users")
#Delete a command, arguments ("folder_name", "command_name")
#ARD.delete_command("folder2", "command1")
#delete an exisiting folder, areguments are ("foldername")
#ARD.delete_folder("folder2")
#to create a new empty folder that you can add commands to
#ARD.create_empty_folder("Folder2")