usd 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +49 -0
- data/usd.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b9d6085759d57ba2fc8414411caae2443c7b936be7efa28078eb8e8b28f21b3
|
4
|
+
data.tar.gz: 98a5eb27eeca21188a17442f1e17392ffa5b17d837dc018200d6e2b1b22cbe6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9ada977cb4500b7d5dc0442b65df4dd36d0202819c080ed78225d332f166918bc0d691a7bbd0a1191d2f14a971ade8348e5601abefa6b573d30d0aa72e0ec01
|
7
|
+
data.tar.gz: 3d0c54c51ec22b86291bd2b4696ba4102a58c822da1eaa8dfe283d422fff7c82245621bda25afb3939c32a58918f4951edecafc6708b1bbf322e1b3a4e5a4f18
|
data/README.md
CHANGED
@@ -2,3 +2,52 @@
|
|
2
2
|
# usd - Ruby Class for SDM REST-API-Calls
|
3
3
|
|
4
4
|
There is a ruby class and a commandline tool rusdc.
|
5
|
+
|
6
|
+
# Installation
|
7
|
+
|
8
|
+
just install the gem:
|
9
|
+
|
10
|
+
```
|
11
|
+
sudo gem install usd
|
12
|
+
```
|
13
|
+
|
14
|
+
Be aware that you need some compiler-tools and the ruby headers:
|
15
|
+
|
16
|
+
```
|
17
|
+
sudo apt-get install build-essential ruby-dev
|
18
|
+
```
|
19
|
+
|
20
|
+
# External Tools
|
21
|
+
|
22
|
+
Some external dependencies are:
|
23
|
+
|
24
|
+
- [jq](https://stedolan.github.io/jq/) - a great tool for query and manipulate json-data
|
25
|
+
- [mlr - Miller](http://johnkerl.org/miller/doc/index.html) - a great tool for data-transforming to and from json, csv and many more
|
26
|
+
|
27
|
+
place both binaries `jq` und `mlr` in a path, which is in your PATH-Environment.
|
28
|
+
|
29
|
+
# Funktions from the commandline-tool `rusdc`
|
30
|
+
|
31
|
+
```
|
32
|
+
rusdc
|
33
|
+
Commands:
|
34
|
+
rusdc chg_add_nr # <CO> <CI> - fügt einer CO ein CI hinzu
|
35
|
+
rusdc chg_list_nr # <CO> - listet alle CIs einer CO
|
36
|
+
rusdc create # pipe json-data to create object
|
37
|
+
rusdc field_names # field_names <object> , listet die Attribute und Beziehungen eines Objektes auf.
|
38
|
+
rusdc find # find <object> <where-clause> [fields - Komma getrennt (id,name)] - findet alle Objecte die die wc erfüllen.
|
39
|
+
rusdc get # get <object> <cn>
|
40
|
+
rusdc get_attachment_of_ci # <ci_name> <filename>
|
41
|
+
rusdc get_attachment_of_co # <co_name> <filename>
|
42
|
+
rusdc help [COMMAND] # Describe available commands or one specific command
|
43
|
+
rusdc list_attachments_of_ci # <ci_name>
|
44
|
+
rusdc list_attachments_of_co # <co_name>
|
45
|
+
rusdc nr_add_child # <nr-name> <child-name>
|
46
|
+
rusdc nr_changes # <nr> [inactive-too] - listet alle offenen Change eines nr, bei Bedarf auch inaktive
|
47
|
+
rusdc nr_childs # nr_childs <ci-name> , listet alle Childs eines CI
|
48
|
+
rusdc nr_incidents # <nr> [inactive-too] - listet alle offenen Incidents eines nr, bei Bedarf auch inaktive
|
49
|
+
rusdc nr_parents # nr_parents <ci-name> , listet alle Parents eines CI
|
50
|
+
rusdc update # pipe json-data to update object
|
51
|
+
```
|
52
|
+
|
53
|
+
the german text will be translated soon.
|
data/usd.gemspec
CHANGED