wf_node_api 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/Gemfile +28 -0
  4. data/Gemfile.lock +66 -0
  5. data/LICENSE +340 -0
  6. data/Makefile +19 -0
  7. data/README.md +78 -0
  8. data/Rakefile +2 -0
  9. data/Vagrantfile +102 -0
  10. data/_docs/api/Api/NodeApi.html +123 -0
  11. data/_docs/api/Api.html +149 -0
  12. data/_docs/api/Config/Check.html +331 -0
  13. data/_docs/api/Config.html +115 -0
  14. data/_docs/api/ConfigCheck.html +365 -0
  15. data/_docs/api/ContainerManager.html +1632 -0
  16. data/_docs/api/ContainerManagerAdapter/Lxc.html +1352 -0
  17. data/_docs/api/ContainerManagerAdapter/Vserver.html +1358 -0
  18. data/_docs/api/ContainerManagerAdapter.html +151 -0
  19. data/_docs/api/Error/NotFound.html +134 -0
  20. data/_docs/api/Error.html +115 -0
  21. data/_docs/api/NotFoundError.html +157 -0
  22. data/_docs/api/OS.html +234 -0
  23. data/_docs/api/ResourceManager.html +322 -0
  24. data/_docs/api/ResourceManagerAdapter/Linux.html +326 -0
  25. data/_docs/api/ResourceManagerAdapter.html +149 -0
  26. data/_docs/api/WfNodeApi.html +163 -0
  27. data/_docs/api/_index.html +239 -0
  28. data/_docs/api/class_list.html +58 -0
  29. data/_docs/api/css/common.css +1 -0
  30. data/_docs/api/css/full_list.css +57 -0
  31. data/_docs/api/css/style.css +339 -0
  32. data/_docs/api/file.README.html +146 -0
  33. data/_docs/api/file_list.html +60 -0
  34. data/_docs/api/frames.html +26 -0
  35. data/_docs/api/index.html +146 -0
  36. data/_docs/api/js/app.js +219 -0
  37. data/_docs/api/js/full_list.js +181 -0
  38. data/_docs/api/js/jquery.js +4 -0
  39. data/_docs/api/method_list.html +273 -0
  40. data/_docs/api/top-level-namespace.html +244 -0
  41. data/_docs/rest/api_data.js +1 -0
  42. data/_docs/rest/api_data.json +1 -0
  43. data/_docs/rest/api_project.js +1 -0
  44. data/_docs/rest/api_project.json +1 -0
  45. data/_docs/rest/css/style.css +538 -0
  46. data/_docs/rest/header.md +3 -0
  47. data/_docs/rest/img/favicon.ico +0 -0
  48. data/_docs/rest/img/glyphicons-halflings-white.png +0 -0
  49. data/_docs/rest/img/glyphicons-halflings.png +0 -0
  50. data/_docs/rest/index.html +658 -0
  51. data/_docs/rest/locales/de.js +25 -0
  52. data/_docs/rest/locales/fr.js +25 -0
  53. data/_docs/rest/locales/locale.js +43 -0
  54. data/_docs/rest/locales/nl.js +25 -0
  55. data/_docs/rest/locales/pl.js +25 -0
  56. data/_docs/rest/locales/pt_br.js +25 -0
  57. data/_docs/rest/locales/ru.js +25 -0
  58. data/_docs/rest/locales/zh.js +25 -0
  59. data/_docs/rest/main.js +691 -0
  60. data/_docs/rest/utils/handlebars_helper.js +327 -0
  61. data/_docs/rest/utils/send_sample_request.js +158 -0
  62. data/_docs/rest/vendor/bootstrap-responsive.min.css +9 -0
  63. data/_docs/rest/vendor/bootstrap.min.css +9 -0
  64. data/_docs/rest/vendor/bootstrap.min.js +6 -0
  65. data/_docs/rest/vendor/diff_match_patch.min.js +49 -0
  66. data/_docs/rest/vendor/handlebars.min.js +28 -0
  67. data/_docs/rest/vendor/jquery.min.js +4 -0
  68. data/_docs/rest/vendor/lodash.min.js +61 -0
  69. data/_docs/rest/vendor/path-to-regexp/LICENSE +21 -0
  70. data/_docs/rest/vendor/path-to-regexp/index.js +205 -0
  71. data/_docs/rest/vendor/polyfill.js +100 -0
  72. data/_docs/rest/vendor/prettify/lang-apollo.js +2 -0
  73. data/_docs/rest/vendor/prettify/lang-basic.js +3 -0
  74. data/_docs/rest/vendor/prettify/lang-clj.js +18 -0
  75. data/_docs/rest/vendor/prettify/lang-css.js +2 -0
  76. data/_docs/rest/vendor/prettify/lang-dart.js +3 -0
  77. data/_docs/rest/vendor/prettify/lang-erlang.js +2 -0
  78. data/_docs/rest/vendor/prettify/lang-go.js +1 -0
  79. data/_docs/rest/vendor/prettify/lang-hs.js +2 -0
  80. data/_docs/rest/vendor/prettify/lang-lisp.js +3 -0
  81. data/_docs/rest/vendor/prettify/lang-llvm.js +1 -0
  82. data/_docs/rest/vendor/prettify/lang-lua.js +2 -0
  83. data/_docs/rest/vendor/prettify/lang-matlab.js +6 -0
  84. data/_docs/rest/vendor/prettify/lang-ml.js +2 -0
  85. data/_docs/rest/vendor/prettify/lang-mumps.js +2 -0
  86. data/_docs/rest/vendor/prettify/lang-n.js +4 -0
  87. data/_docs/rest/vendor/prettify/lang-pascal.js +3 -0
  88. data/_docs/rest/vendor/prettify/lang-proto.js +1 -0
  89. data/_docs/rest/vendor/prettify/lang-r.js +2 -0
  90. data/_docs/rest/vendor/prettify/lang-rd.js +1 -0
  91. data/_docs/rest/vendor/prettify/lang-scala.js +2 -0
  92. data/_docs/rest/vendor/prettify/lang-sql.js +2 -0
  93. data/_docs/rest/vendor/prettify/lang-tcl.js +3 -0
  94. data/_docs/rest/vendor/prettify/lang-tex.js +1 -0
  95. data/_docs/rest/vendor/prettify/lang-vb.js +2 -0
  96. data/_docs/rest/vendor/prettify/lang-vhdl.js +3 -0
  97. data/_docs/rest/vendor/prettify/lang-wiki.js +2 -0
  98. data/_docs/rest/vendor/prettify/lang-xq.js +3 -0
  99. data/_docs/rest/vendor/prettify/lang-yaml.js +2 -0
  100. data/_docs/rest/vendor/prettify/prettify.css +1 -0
  101. data/_docs/rest/vendor/prettify/prettify.js +30 -0
  102. data/_docs/rest/vendor/prettify/run_prettify.js +34 -0
  103. data/_docs/rest/vendor/prettify.css +101 -0
  104. data/_docs/rest/vendor/require.min.js +36 -0
  105. data/apidoc.json +23 -0
  106. data/bin/wf_node_api +80 -0
  107. data/lib/wf_node_api/api/node_api.rb +360 -0
  108. data/lib/wf_node_api/config/config_template.erb +50 -0
  109. data/lib/wf_node_api/config_check.rb +50 -0
  110. data/lib/wf_node_api/container_manager.rb +286 -0
  111. data/lib/wf_node_api/container_manager_adapter/lxc.rb +431 -0
  112. data/lib/wf_node_api/container_manager_adapter/vserver.rb +448 -0
  113. data/lib/wf_node_api/error/not_found.rb +27 -0
  114. data/lib/wf_node_api/os.rb +32 -0
  115. data/lib/wf_node_api/resource_manager.rb +49 -0
  116. data/lib/wf_node_api/resource_manager_adapter/linux.rb +53 -0
  117. data/lib/wf_node_api/translations.rb +38 -0
  118. data/lib/wf_node_api/version.rb +28 -0
  119. data/lib/wf_node_api.rb +57 -0
  120. data/manifests/files/dhozac-vserver.repo +4 -0
  121. data/wf-node-api.gemspec +53 -0
  122. metadata +221 -0
@@ -0,0 +1,25 @@
1
+ define({
2
+ de: {
3
+ 'Allowed values:' : 'Erlaubte Werte:',
4
+ 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern',
5
+ 'compare changes to:' : 'vergleiche Änderungen mit:',
6
+ 'compared to' : 'verglichen mit',
7
+ 'Default value:' : 'Standardwert:',
8
+ 'Description' : 'Beschreibung',
9
+ 'Field' : 'Feld',
10
+ 'General' : 'Allgemein',
11
+ 'Generated with' : 'Erstellt mit',
12
+ 'Name' : 'Name',
13
+ 'No response values.' : 'Keine Rückgabewerte.',
14
+ 'optional' : 'optional',
15
+ 'Parameter' : 'Parameter',
16
+ 'Permission:' : 'Berechtigung:',
17
+ 'Response' : 'Antwort',
18
+ 'Send' : 'Senden',
19
+ 'Send a Sample Request' : 'Eine Beispielanfrage senden',
20
+ 'show up to version:' : 'zeige bis zur Version:',
21
+ 'Size range:' : 'Größenbereich:',
22
+ 'Type' : 'Typ',
23
+ 'url' : 'url'
24
+ }
25
+ });
@@ -0,0 +1,25 @@
1
+ define({
2
+ fr: {
3
+ 'Allowed values:' : 'Valeurs autorisées :',
4
+ 'Compare all with predecessor': 'Tout comparer avec ...',
5
+ 'compare changes to:' : 'comparer les changements à :',
6
+ 'compared to' : 'comparer à',
7
+ 'Default value:' : 'Valeur par défaut :',
8
+ 'Description' : 'Description',
9
+ 'Field' : 'Champ',
10
+ 'General' : 'Général',
11
+ 'Generated with' : 'Généré avec',
12
+ 'Name' : 'Nom',
13
+ 'No response values.' : 'Aucune valeur de réponse.',
14
+ 'optional' : 'optionel',
15
+ 'Parameter' : 'Paramètre',
16
+ 'Permission:' : 'Permission :',
17
+ 'Response' : 'Réponse',
18
+ 'Send' : 'Envoyer',
19
+ 'Send a Sample Request' : 'Envoyer une requête représentative',
20
+ 'show up to version:' : 'Montrer à partir de la version :',
21
+ 'Size range:' : 'Ordre de grandeur :',
22
+ 'Type' : 'Type',
23
+ 'url' : 'url'
24
+ }
25
+ });
@@ -0,0 +1,43 @@
1
+ define([
2
+ './locales/de.js',
3
+ './locales/fr.js',
4
+ './locales/nl.js',
5
+ './locales/pl.js',
6
+ './locales/pt_br.js',
7
+ './locales/ru.js',
8
+ './locales/zh.js'
9
+ ], function() {
10
+ var langId = (navigator.language || navigator.userLanguage).toLowerCase();
11
+ var language = langId.substr(0, 2);
12
+ var locales = {};
13
+
14
+ for (index in arguments) {
15
+ for (property in arguments[index])
16
+ locales[property] = arguments[index][property];
17
+ }
18
+ if ( ! locales['en'])
19
+ locales['en'] = {};
20
+
21
+ if ( ! locales[langId] && ! locales[language])
22
+ language = 'en';
23
+
24
+ var locale = (locales[langId] ? locales[langId] : locales[language]);
25
+
26
+ function __(text) {
27
+ var index = locale[text];
28
+ if (index === undefined)
29
+ return text;
30
+ return index;
31
+ };
32
+
33
+ function setLanguage(language) {
34
+ locale = locales[language];
35
+ }
36
+
37
+ return {
38
+ __ : __,
39
+ locales : locales,
40
+ locale : locale,
41
+ setLanguage: setLanguage
42
+ };
43
+ });
@@ -0,0 +1,25 @@
1
+ define({
2
+ nl: {
3
+ 'Allowed values:' : 'Toegestane waarden:',
4
+ 'Compare all with predecessor': 'Vergelijk alle met voorgaande versie',
5
+ 'compare changes to:' : 'vergelijk veranderingen met:',
6
+ 'compared to' : 'vergelijk met',
7
+ 'Default value:' : 'Standaard waarde:',
8
+ 'Description' : 'Omschrijving',
9
+ 'Field' : 'Veld',
10
+ 'General' : 'Algemeen',
11
+ 'Generated with' : 'Gegenereerd met',
12
+ 'Name' : 'Naam',
13
+ 'No response values.' : 'Geen response waardes.',
14
+ 'optional' : 'optioneel',
15
+ 'Parameter' : 'Parameter',
16
+ 'Permission:' : 'Permissie:',
17
+ 'Response' : 'Antwoorden',
18
+ 'Send' : 'Sturen',
19
+ 'Send a Sample Request' : 'Stuur een sample aanvragen',
20
+ 'show up to version:' : 'toon tot en met versie:',
21
+ 'Size range:' : 'Maatbereik:',
22
+ 'Type' : 'Type',
23
+ 'url' : 'url'
24
+ }
25
+ });
@@ -0,0 +1,25 @@
1
+ define({
2
+ pl: {
3
+ 'Allowed values:' : 'Dozwlone wartości:',
4
+ 'Compare all with predecessor': 'Porównaj z poprzednimi wersjami',
5
+ 'compare changes to:' : 'porównaj zmiany do:',
6
+ 'compared to' : 'porównaj do:',
7
+ 'Default value:' : 'Wartość domyślna:',
8
+ 'Description' : 'Opis',
9
+ 'Field' : 'Pole',
10
+ 'General' : 'Generalnie',
11
+ 'Generated with' : 'Wygenerowano z',
12
+ 'Name' : 'Nazwa',
13
+ 'No response values.' : 'Brak odpowiedzi.',
14
+ 'optional' : 'opcjonalny',
15
+ 'Parameter' : 'Parametr',
16
+ 'Permission:' : 'Uprawnienia:',
17
+ 'Response' : 'Odpowiedź',
18
+ 'Send' : 'Wyślij',
19
+ 'Send a Sample Request' : 'Wyślij przykładowe żądanie',
20
+ 'show up to version:' : 'pokaż do wersji:',
21
+ 'Size range:' : 'Zakres rozmiaru:',
22
+ 'Type' : 'Typ',
23
+ 'url' : 'url'
24
+ }
25
+ });
@@ -0,0 +1,25 @@
1
+ define({
2
+ 'pt_br': {
3
+ 'Allowed values:' : 'Valores permitidos:',
4
+ 'Compare all with predecessor': 'Compare todos com antecessores',
5
+ 'compare changes to:' : 'comparar alterações com:',
6
+ 'compared to' : 'comparado com',
7
+ 'Default value:' : 'Valor padrão:',
8
+ 'Description' : 'Descrição',
9
+ 'Field' : 'Campo',
10
+ 'General' : 'Geral',
11
+ 'Generated with' : 'Gerado com',
12
+ 'Name' : 'Nome',
13
+ 'No response values.' : 'Sem valores de resposta.',
14
+ 'optional' : 'opcional',
15
+ 'Parameter' : 'Parâmetro',
16
+ 'Permission:' : 'Permissão:',
17
+ 'Response' : 'Resposta',
18
+ 'Send' : 'Enviar',
19
+ 'Send a Sample Request' : 'Enviar um Exemplo de Pedido',
20
+ 'show up to version:' : 'aparecer para a versão:',
21
+ 'Size range:' : 'Faixa de tamanho:',
22
+ 'Type' : 'Tipo',
23
+ 'url' : 'url'
24
+ }
25
+ });
@@ -0,0 +1,25 @@
1
+ define({
2
+ ru: {
3
+ 'Allowed values:' : 'Допустимые значения:',
4
+ 'Compare all with predecessor': 'Сравнить с предыдущей версией',
5
+ 'compare changes to:' : 'сравнить с:',
6
+ 'compared to' : 'в сравнении с',
7
+ 'Default value:' : 'По умолчанию:',
8
+ 'Description' : 'Описание',
9
+ 'Field' : 'Название',
10
+ 'General' : 'Общая информация',
11
+ 'Generated with' : 'Сгенерировано с помощью',
12
+ 'Name' : 'Название',
13
+ 'No response values.' : 'Нет значений для ответа.',
14
+ 'optional' : 'необязательный',
15
+ 'Parameter' : 'Параметр',
16
+ 'Permission:' : 'Разрешено:',
17
+ 'Response' : 'Ответ',
18
+ 'Send' : 'Отправить',
19
+ 'Send a Sample Request' : 'Отправить тестовый запрос',
20
+ 'show up to version:' : 'показать версию:',
21
+ 'Size range:' : 'Ограничения:',
22
+ 'Type' : 'Тип',
23
+ 'url' : 'URL'
24
+ }
25
+ });
@@ -0,0 +1,25 @@
1
+ define({
2
+ zh: {
3
+ 'Allowed values:' : '允許值:',
4
+ 'Compare all with predecessor': '预先比较所有',
5
+ 'compare changes to:' : '比较变更:',
6
+ 'compared to' : '对比',
7
+ 'Default value:' : '默认值:',
8
+ 'Description' : '描述',
9
+ 'Field' : '字段',
10
+ 'General' : '概括',
11
+ 'Generated with' : '生成工具',
12
+ 'Name' : '名称',
13
+ 'No response values.' : '无响应值.',
14
+ 'optional' : '选项',
15
+ 'Parameter' : '参数',
16
+ 'Permission:' : '允许:',
17
+ 'Response' : '響應',
18
+ 'Send' : '發送',
19
+ 'Send a Sample Request' : '發送樣品申請',
20
+ 'show up to version:' : '显示到版本:',
21
+ 'Size range:' : '尺寸範圍:',
22
+ 'Type' : '类型',
23
+ 'url' : '網址'
24
+ }
25
+ });