dtk-client 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/Gemfile +1 -3
  4. data/README.md +2 -121
  5. data/Rakefile +44 -0
  6. data/bin/dtk +10 -88
  7. data/dtk-client.gemspec +21 -44
  8. data/examples/simple/dtk.module.yaml +32 -0
  9. data/{lib/git-logs/git.log → examples/simple/test/README.md} +0 -0
  10. data/examples/spark/dtk.module.yaml +120 -0
  11. data/examples/with_repo_content/deploy/puppet/manifests/hostname.pp +54 -0
  12. data/examples/with_repo_content/dtk.module.yaml +49 -0
  13. data/examples/with_repo_content/test/README.txt +0 -0
  14. data/features/dtk.feature +8 -0
  15. data/features/step_definitions/dtk_steps.rb +6 -0
  16. data/features/support/env.rb +15 -0
  17. data/lib/cli/command/mixin.rb +101 -0
  18. data/lib/cli/command/module/clone.rb +42 -0
  19. data/lib/cli/command/module/install.rb +52 -0
  20. data/lib/cli/command/module/list.rb +31 -0
  21. data/lib/cli/command/module/list_assemblies.rb +39 -0
  22. data/lib/cli/command/module/push.rb +34 -0
  23. data/lib/cli/command/module/uninstall.rb +46 -0
  24. data/lib/cli/command/module.rb +33 -0
  25. data/lib/cli/command/options.rb +33 -0
  26. data/lib/cli/command/service/cancel_task.rb +33 -0
  27. data/lib/cli/command/service/converge.rb +37 -0
  28. data/lib/{parser/adapters/thor/common_option_defs.rb → cli/command/service/create_workspace.rb} +13 -17
  29. data/lib/cli/command/service/destroy.rb +47 -0
  30. data/lib/cli/command/service/edit.rb +47 -0
  31. data/lib/cli/command/service/exec.rb +42 -0
  32. data/lib/cli/command/service/exec_sync.rb +53 -0
  33. data/lib/cli/command/service/list.rb +30 -0
  34. data/lib/cli/command/service/list_actions.rb +39 -0
  35. data/lib/cli/command/service/list_attributes.rb +44 -0
  36. data/lib/cli/command/service/list_component_links.rb +33 -0
  37. data/lib/cli/command/service/list_components.rb +39 -0
  38. data/lib/cli/command/service/list_dependent_modules.rb +33 -0
  39. data/lib/cli/command/service/list_nodes.rb +33 -0
  40. data/lib/cli/command/service/list_violations.rb +33 -0
  41. data/lib/cli/command/service/pull.rb +32 -0
  42. data/lib/cli/command/service/push.rb +37 -0
  43. data/lib/{shell/parse_monkey_patch.rb → cli/command/service/set_default_target.rb} +9 -17
  44. data/lib/cli/command/service/set_required_attributes.rb +32 -0
  45. data/lib/cli/command/service/ssh.rb +42 -0
  46. data/lib/cli/command/service/stage.rb +55 -0
  47. data/lib/cli/command/service/start.rb +33 -0
  48. data/lib/{shell/context_aux.rb → cli/command/service/stop.rb} +10 -23
  49. data/lib/cli/command/service/task_status.rb +39 -0
  50. data/lib/cli/command/service.rb +55 -0
  51. data/lib/{commands.rb → cli/command/subcommand.rb} +22 -25
  52. data/lib/{bundler_monkey_patch.rb → cli/command/token/arg.rb} +6 -6
  53. data/lib/cli/command/token/class_mixin.rb +96 -0
  54. data/lib/cli/command/token/flag.rb +42 -0
  55. data/lib/{execute/command/rest_call.rb → cli/command/token/mixin.rb} +23 -14
  56. data/lib/cli/command/token/switch.rb +35 -0
  57. data/lib/cli/command/token.rb +76 -0
  58. data/lib/cli/command.rb +46 -0
  59. data/lib/cli/context/attributes.rb +50 -0
  60. data/lib/cli/context/type/module.rb +34 -0
  61. data/lib/{commands/thor/state_change.rb → cli/context/type/service.rb} +11 -5
  62. data/lib/cli/context/type/top.rb +32 -0
  63. data/lib/cli/context/type.rb +42 -0
  64. data/lib/cli/context.rb +174 -0
  65. data/lib/cli/directory_parser/file_system.rb +105 -0
  66. data/lib/{execute/command.rb → cli/directory_parser.rb} +14 -17
  67. data/lib/{execute.rb → cli/file_obj.rb} +13 -9
  68. data/lib/cli/processor/plugin/gli.rb +70 -0
  69. data/lib/cli/processor.rb +60 -0
  70. data/lib/cli/runner/dtkn_access.rb +75 -0
  71. data/lib/cli/runner.rb +58 -0
  72. data/lib/cli/version.rb +8 -0
  73. data/lib/{config → client/config}/cacert.pem +0 -0
  74. data/lib/client/config/default.conf +20 -0
  75. data/lib/client/config.rb +106 -0
  76. data/lib/client/configurator.rb +182 -0
  77. data/lib/client/conn.rb +197 -0
  78. data/lib/client/content_generator.rb +127 -0
  79. data/lib/client/error/subclasses.rb +105 -0
  80. data/lib/client/error.rb +98 -0
  81. data/lib/client/git_repo/adapter/git_gem/error_handler.rb +70 -0
  82. data/lib/client/git_repo/adapter/git_gem.rb +179 -0
  83. data/lib/client/git_repo.rb +122 -0
  84. data/lib/client/logger.rb +136 -0
  85. data/lib/client/operation/account.rb +66 -0
  86. data/lib/client/operation/client_module_dir/git_repo.rb +286 -0
  87. data/lib/client/operation/client_module_dir.rb +138 -0
  88. data/lib/client/operation/module/clone_module.rb +52 -0
  89. data/lib/client/operation/module/install/common_module.rb +58 -0
  90. data/lib/client/operation/module/install/external_module.rb +122 -0
  91. data/lib/client/operation/module/install.rb +91 -0
  92. data/lib/client/operation/module/install_from_catalog.rb +76 -0
  93. data/lib/client/operation/module/list.rb +34 -0
  94. data/lib/client/operation/module/list_assemblies.rb +35 -0
  95. data/lib/client/operation/module/push.rb +62 -0
  96. data/lib/client/operation/module/uninstall.rb +44 -0
  97. data/lib/client/operation/module.rb +58 -0
  98. data/lib/{commands/common/thor/reparse.rb → client/operation/module_service_common.rb} +27 -16
  99. data/lib/client/operation/service/cancel_task.rb +29 -0
  100. data/lib/client/operation/service/commit_and_push.rb +128 -0
  101. data/lib/client/operation/service/converge.rb +50 -0
  102. data/lib/{util/common_util.rb → client/operation/service/create_workspace.rb} +13 -13
  103. data/lib/client/operation/service/destroy.rb +42 -0
  104. data/lib/client/operation/service/edit.rb +54 -0
  105. data/lib/client/operation/service/exec.rb +73 -0
  106. data/lib/client/operation/service/list.rb +32 -0
  107. data/lib/client/operation/service/list_actions.rb +34 -0
  108. data/lib/{commands/thor/dependency.rb → client/operation/service/list_attributes.rb} +16 -12
  109. data/lib/client/operation/service/list_component_links.rb +29 -0
  110. data/lib/{commands/common/thor/pull_clone_changes.rb → client/operation/service/list_components.rb} +13 -7
  111. data/lib/client/operation/service/list_dependent_modules.rb +29 -0
  112. data/lib/client/operation/service/list_nodes.rb +29 -0
  113. data/lib/{commands/thor/project.rb → client/operation/service/list_violations.rb} +8 -13
  114. data/lib/client/operation/service/pull.rb +37 -0
  115. data/lib/client/operation/service/set_default_target.rb +31 -0
  116. data/lib/client/operation/service/set_required_attributes.rb +41 -0
  117. data/lib/client/operation/service/ssh.rb +118 -0
  118. data/lib/client/operation/service/stage.rb +54 -0
  119. data/lib/client/operation/service/start.rb +29 -0
  120. data/lib/client/operation/service/stop.rb +30 -0
  121. data/lib/{task_status → client/operation/service/task_status}/refresh_mode.rb +15 -25
  122. data/lib/{task_status → client/operation/service/task_status}/snapshot_mode.rb +4 -5
  123. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/format.rb +1 -1
  124. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/result/action.rb +1 -1
  125. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/result/components.rb +1 -1
  126. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/result/node_level.rb +1 -1
  127. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/result.rb +4 -4
  128. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/steps/action.rb +1 -1
  129. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/steps/components.rb +1 -1
  130. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/steps/node_level.rb +1 -1
  131. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task/steps.rb +4 -4
  132. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/hierarchical_task.rb +3 -3
  133. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/no_results.rb +1 -1
  134. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/render.rb +1 -1
  135. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/stage/render.rb +1 -1
  136. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/stage.rb +3 -3
  137. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/task_end.rb +1 -1
  138. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element/task_start.rb +1 -1
  139. data/lib/{task_status → client/operation/service/task_status}/stream_mode/element.rb +13 -13
  140. data/lib/{task_status → client/operation/service/task_status}/stream_mode.rb +5 -9
  141. data/lib/client/operation/service/task_status.rb +77 -0
  142. data/lib/client/operation/service.rb +54 -0
  143. data/lib/client/operation.rb +67 -0
  144. data/lib/client/operation_args.rb +40 -0
  145. data/lib/{execute/execute_context/result_store.rb → client/render/view/simple.rb} +15 -14
  146. data/lib/client/render/view/table/processor.rb +248 -0
  147. data/lib/client/render/view/table.rb +75 -0
  148. data/lib/client/render.rb +113 -0
  149. data/lib/client/response/error_handler.rb +97 -0
  150. data/lib/client/response/render_helper.rb +78 -0
  151. data/lib/client/response/subclasses.rb +62 -0
  152. data/lib/client/response.rb +83 -0
  153. data/lib/client/session.rb +62 -0
  154. data/lib/client/util/auxiliary.rb +34 -0
  155. data/lib/client/util/console.rb +81 -0
  156. data/lib/client/util/disk_cacher.rb +66 -0
  157. data/lib/client/util/dtk_path.rb +28 -0
  158. data/lib/{search_hash.rb → client/util/hash_with_optional_keys.rb} +29 -21
  159. data/lib/client/util/interactive_wizard.rb +84 -0
  160. data/lib/client/util/module_ref.rb +92 -0
  161. data/lib/client/util/os_util/print.rb +121 -0
  162. data/lib/client/util/os_util.rb +122 -0
  163. data/lib/{commands/thor/utils.rb → client/util/post_body.rb} +1 -1
  164. data/lib/{execute/error_usage.rb → client/util/query_string_hash.rb} +2 -2
  165. data/lib/client/util/remote_dependency.rb +67 -0
  166. data/lib/client/util/ssh_util.rb +89 -0
  167. data/lib/client/util/validation.rb +28 -0
  168. data/lib/client/util.rb +18 -0
  169. data/lib/{util/permission_util.rb → dtk_cli.rb} +10 -9
  170. data/lib/dtk_client.rb +18 -14
  171. data/test/default_test.rb +14 -0
  172. data/test/test_helper.rb +9 -0
  173. metadata +196 -307
  174. data/Gemfile_dev +0 -13
  175. data/bin/dtk-execute +0 -32
  176. data/bin/dtk-shell +0 -31
  177. data/lib/auxiliary.rb +0 -61
  178. data/lib/client.rb +0 -58
  179. data/lib/command_helper.rb +0 -33
  180. data/lib/command_helpers/git_repo/merge.rb +0 -153
  181. data/lib/command_helpers/git_repo.rb +0 -589
  182. data/lib/command_helpers/jenkins_client/config_xml.rb +0 -288
  183. data/lib/command_helpers/jenkins_client.rb +0 -106
  184. data/lib/command_helpers/service_importer.rb +0 -251
  185. data/lib/command_helpers/service_link.rb +0 -33
  186. data/lib/command_helpers/test_module_creator.rb +0 -69
  187. data/lib/command_helpers/test_module_templates/dtk.model.yaml.eruby +0 -10
  188. data/lib/command_helpers/test_module_templates/spec_helper.rb.eruby +0 -10
  189. data/lib/command_helpers/test_module_templates/temp_component_spec.rb.eruby +0 -5
  190. data/lib/commands/common/thor/access_control.rb +0 -133
  191. data/lib/commands/common/thor/action_result_handler.rb +0 -74
  192. data/lib/commands/common/thor/assembly_template.rb +0 -92
  193. data/lib/commands/common/thor/assembly_workspace.rb +0 -1638
  194. data/lib/commands/common/thor/base_command_helper.rb +0 -59
  195. data/lib/commands/common/thor/clone.rb +0 -82
  196. data/lib/commands/common/thor/common.rb +0 -88
  197. data/lib/commands/common/thor/common_base.rb +0 -49
  198. data/lib/commands/common/thor/create_target.rb +0 -70
  199. data/lib/commands/common/thor/edit.rb +0 -255
  200. data/lib/commands/common/thor/inventory_parser.rb +0 -98
  201. data/lib/commands/common/thor/list_diffs.rb +0 -128
  202. data/lib/commands/common/thor/module/import.rb +0 -215
  203. data/lib/commands/common/thor/module.rb +0 -1011
  204. data/lib/commands/common/thor/node.rb +0 -53
  205. data/lib/commands/common/thor/poller.rb +0 -65
  206. data/lib/commands/common/thor/pull_from_remote.rb +0 -152
  207. data/lib/commands/common/thor/puppet_forge.rb +0 -72
  208. data/lib/commands/common/thor/purge_clone.rb +0 -101
  209. data/lib/commands/common/thor/push_clone_changes.rb +0 -162
  210. data/lib/commands/common/thor/push_to_remote.rb +0 -94
  211. data/lib/commands/common/thor/remotes.rb +0 -71
  212. data/lib/commands/common/thor/set_required_attributes.rb +0 -46
  213. data/lib/commands/thor/account.rb +0 -239
  214. data/lib/commands/thor/assembly.rb +0 -361
  215. data/lib/commands/thor/attribute.rb +0 -79
  216. data/lib/commands/thor/component.rb +0 -70
  217. data/lib/commands/thor/component_module.rb +0 -501
  218. data/lib/commands/thor/component_template.rb +0 -174
  219. data/lib/commands/thor/developer.rb +0 -144
  220. data/lib/commands/thor/dtk.rb +0 -152
  221. data/lib/commands/thor/library.rb +0 -125
  222. data/lib/commands/thor/node.rb +0 -504
  223. data/lib/commands/thor/node_group.rb +0 -203
  224. data/lib/commands/thor/node_template.rb +0 -94
  225. data/lib/commands/thor/provider.rb +0 -233
  226. data/lib/commands/thor/remotes.rb +0 -49
  227. data/lib/commands/thor/service.rb +0 -932
  228. data/lib/commands/thor/service_module.rb +0 -900
  229. data/lib/commands/thor/target.rb +0 -250
  230. data/lib/commands/thor/task.rb +0 -116
  231. data/lib/commands/thor/test_module.rb +0 -310
  232. data/lib/commands/thor/workspace.rb +0 -698
  233. data/lib/config/client.conf.header +0 -20
  234. data/lib/config/configuration.rb +0 -99
  235. data/lib/config/default.conf +0 -16
  236. data/lib/config/disk_cacher.rb +0 -80
  237. data/lib/configurator.rb +0 -176
  238. data/lib/context_router.rb +0 -44
  239. data/lib/core.rb +0 -489
  240. data/lib/domain/git_adapter.rb +0 -412
  241. data/lib/domain/git_error_handler.rb +0 -64
  242. data/lib/domain/response/error_handler.rb +0 -86
  243. data/lib/domain/response.rb +0 -285
  244. data/lib/dtk-client/version.rb +0 -20
  245. data/lib/dtk_constants.rb +0 -40
  246. data/lib/dtk_error.rb +0 -114
  247. data/lib/dtk_logger.rb +0 -113
  248. data/lib/error.rb +0 -85
  249. data/lib/execute/cli_pure/cli_rerouter.rb +0 -102
  250. data/lib/execute/command/api_call/map.rb +0 -60
  251. data/lib/execute/command/api_call/service.rb +0 -91
  252. data/lib/execute/command/api_call/translation_term.rb +0 -119
  253. data/lib/execute/command/api_call.rb +0 -60
  254. data/lib/execute/command_processor/rest_call.rb +0 -59
  255. data/lib/execute/command_processor.rb +0 -30
  256. data/lib/execute/execute_context.rb +0 -86
  257. data/lib/execute/script/add_tenant.rb +0 -121
  258. data/lib/execute/script.rb +0 -64
  259. data/lib/parser/adapters/option_parser.rb +0 -70
  260. data/lib/parser/adapters/thor.rb +0 -555
  261. data/lib/require_first.rb +0 -104
  262. data/lib/shell/context.rb +0 -1064
  263. data/lib/shell/domain/active_context.rb +0 -186
  264. data/lib/shell/domain/context_entity.rb +0 -89
  265. data/lib/shell/domain/context_params.rb +0 -223
  266. data/lib/shell/domain/override_tasks.rb +0 -88
  267. data/lib/shell/domain/shadow_entity.rb +0 -76
  268. data/lib/shell/header_shell.rb +0 -44
  269. data/lib/shell/help_monkey_patch.rb +0 -283
  270. data/lib/shell/interactive_wizard.rb +0 -256
  271. data/lib/shell/message_queue.rb +0 -63
  272. data/lib/shell/status_monitor.rb +0 -124
  273. data/lib/shell.rb +0 -261
  274. data/lib/task_status.rb +0 -83
  275. data/lib/util/console.rb +0 -235
  276. data/lib/util/dtk_puppet.rb +0 -65
  277. data/lib/util/module_util.rb +0 -66
  278. data/lib/util/os_util.rb +0 -385
  279. data/lib/util/remote_dependency_util.rb +0 -84
  280. data/lib/util/ssh_util.rb +0 -94
  281. data/lib/view_processor/augmented_simple_list.rb +0 -44
  282. data/lib/view_processor/hash_pretty_print.rb +0 -123
  283. data/lib/view_processor/simple_list.rb +0 -156
  284. data/lib/view_processor/table_print.rb +0 -309
  285. data/lib/view_processor.rb +0 -129
  286. data/puppet/manifests/init.pp +0 -72
  287. data/puppet/manifests/params.pp +0 -16
  288. data/puppet/r8meta.puppet.yml +0 -35
  289. data/puppet/templates/bash_profile.erb +0 -2
  290. data/puppet/templates/client.conf.erb +0 -1
  291. data/puppet/templates/dtkclient.erb +0 -2
  292. data/spec/component_module_spec.rb +0 -34
  293. data/spec/dependency_spec.rb +0 -6
  294. data/spec/dtk_shell_spec.rb +0 -13
  295. data/spec/dtk_spec.rb +0 -33
  296. data/spec/lib/spec_helper.rb +0 -10
  297. data/spec/lib/spec_thor.rb +0 -108
  298. data/spec/node_template_spec.rb +0 -24
  299. data/spec/project_spec.rb +0 -6
  300. data/spec/repo_spec.rb +0 -7
  301. data/spec/response_spec.rb +0 -52
  302. data/spec/service_module_spec.rb +0 -38
  303. data/spec/service_spec.rb +0 -50
  304. data/spec/state_change_spec.rb +0 -7
  305. data/spec/table_print_spec.rb +0 -48
  306. data/spec/target_spec.rb +0 -57
  307. data/spec/task_spec.rb +0 -28
  308. data/views/assembly/augmented_simple_list.rb +0 -12
  309. data/views/assembly_template/augmented_simple_list.rb +0 -12
  310. data/views/list_task/augmented_simple_list.rb +0 -12
metadata CHANGED
@@ -1,127 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
- - Rich PELAVIN
7
+ - Reactor8
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: mime-types
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.25'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.25'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.2.4
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 1.2.4
41
- - !ruby/object:Gem::Dependency
42
- name: json_pure
14
+ name: dtk-common-core
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - '='
46
18
  - !ruby/object:Gem::Version
47
- version: 1.7.4
19
+ version: 0.10.0
48
20
  type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - '='
53
25
  - !ruby/object:Gem::Version
54
- version: 1.7.4
26
+ version: 0.10.0
55
27
  - !ruby/object:Gem::Dependency
56
- name: diff-lcs
28
+ name: gli
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - '='
60
32
  - !ruby/object:Gem::Version
61
- version: 1.1.3
33
+ version: 2.13.4
62
34
  type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
38
  - - '='
67
39
  - !ruby/object:Gem::Version
68
- version: 1.1.3
40
+ version: 2.13.4
69
41
  - !ruby/object:Gem::Dependency
70
- name: hirb
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.7.0
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.7.0
83
- - !ruby/object:Gem::Dependency
84
- name: thor
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 0.15.4
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.15.4
97
- - !ruby/object:Gem::Dependency
98
- name: erubis
42
+ name: highline
99
43
  requirement: !ruby/object:Gem::Requirement
100
44
  requirements:
101
- - - "~>"
45
+ - - '='
102
46
  - !ruby/object:Gem::Version
103
- version: 2.7.0
47
+ version: 1.7.8
104
48
  type: :runtime
105
49
  prerelease: false
106
50
  version_requirements: !ruby/object:Gem::Requirement
107
51
  requirements:
108
- - - "~>"
52
+ - - '='
109
53
  - !ruby/object:Gem::Version
110
- version: 2.7.0
54
+ version: 1.7.8
111
55
  - !ruby/object:Gem::Dependency
112
- name: dtk-common-core
56
+ name: colorize
113
57
  requirement: !ruby/object:Gem::Requirement
114
58
  requirements:
115
59
  - - '='
116
60
  - !ruby/object:Gem::Version
117
- version: 0.9.0
61
+ version: 0.7.7
118
62
  type: :runtime
119
63
  prerelease: false
120
64
  version_requirements: !ruby/object:Gem::Requirement
121
65
  requirements:
122
66
  - - '='
123
67
  - !ruby/object:Gem::Version
124
- version: 0.9.0
68
+ version: 0.7.7
125
69
  - !ruby/object:Gem::Dependency
126
70
  name: git
127
71
  requirement: !ruby/object:Gem::Requirement
@@ -137,244 +81,200 @@ dependencies:
137
81
  - !ruby/object:Gem::Version
138
82
  version: 1.2.9
139
83
  - !ruby/object:Gem::Dependency
140
- name: colorize
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.5.8
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.5.8
153
- - !ruby/object:Gem::Dependency
154
- name: highline
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '='
158
- - !ruby/object:Gem::Version
159
- version: 1.6.16
160
- type: :runtime
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '='
165
- - !ruby/object:Gem::Version
166
- version: 1.6.16
167
- - !ruby/object:Gem::Dependency
168
- name: awesome_print
84
+ name: hirb
169
85
  requirement: !ruby/object:Gem::Requirement
170
86
  requirements:
171
87
  - - '='
172
88
  - !ruby/object:Gem::Version
173
- version: 1.1.0
89
+ version: 0.7.3
174
90
  type: :runtime
175
91
  prerelease: false
176
92
  version_requirements: !ruby/object:Gem::Requirement
177
93
  requirements:
178
94
  - - '='
179
95
  - !ruby/object:Gem::Version
180
- version: 1.1.0
181
- description: The DTK Client is a command line tool to interact with your DTK Server
182
- and DTK Service Catalog instance(s).
183
- email:
184
- - rich@reactor8.com
96
+ version: 0.7.3
97
+ description: Command line tool to interact with a DTK Server and DTK Service Catalog.
98
+ email: support@reactor8.com
185
99
  executables:
186
100
  - dtk
187
- - dtk-execute
188
- - dtk-shell
189
101
  extensions: []
190
102
  extra_rdoc_files: []
191
103
  files:
104
+ - ".gitignore"
192
105
  - Gemfile
193
- - Gemfile_dev
194
106
  - README.md
107
+ - Rakefile
195
108
  - bin/dtk
196
- - bin/dtk-execute
197
- - bin/dtk-shell
198
109
  - dtk-client.gemspec
199
- - lib/auxiliary.rb
200
- - lib/bundler_monkey_patch.rb
201
- - lib/client.rb
202
- - lib/command_helper.rb
203
- - lib/command_helpers/git_repo.rb
204
- - lib/command_helpers/git_repo/merge.rb
205
- - lib/command_helpers/jenkins_client.rb
206
- - lib/command_helpers/jenkins_client/config_xml.rb
207
- - lib/command_helpers/service_importer.rb
208
- - lib/command_helpers/service_link.rb
209
- - lib/command_helpers/test_module_creator.rb
210
- - lib/command_helpers/test_module_templates/dtk.model.yaml.eruby
211
- - lib/command_helpers/test_module_templates/spec_helper.rb.eruby
212
- - lib/command_helpers/test_module_templates/temp_component_spec.rb.eruby
213
- - lib/commands.rb
214
- - lib/commands/common/thor/access_control.rb
215
- - lib/commands/common/thor/action_result_handler.rb
216
- - lib/commands/common/thor/assembly_template.rb
217
- - lib/commands/common/thor/assembly_workspace.rb
218
- - lib/commands/common/thor/base_command_helper.rb
219
- - lib/commands/common/thor/clone.rb
220
- - lib/commands/common/thor/common.rb
221
- - lib/commands/common/thor/common_base.rb
222
- - lib/commands/common/thor/create_target.rb
223
- - lib/commands/common/thor/edit.rb
224
- - lib/commands/common/thor/inventory_parser.rb
225
- - lib/commands/common/thor/list_diffs.rb
226
- - lib/commands/common/thor/module.rb
227
- - lib/commands/common/thor/module/import.rb
228
- - lib/commands/common/thor/node.rb
229
- - lib/commands/common/thor/poller.rb
230
- - lib/commands/common/thor/pull_clone_changes.rb
231
- - lib/commands/common/thor/pull_from_remote.rb
232
- - lib/commands/common/thor/puppet_forge.rb
233
- - lib/commands/common/thor/purge_clone.rb
234
- - lib/commands/common/thor/push_clone_changes.rb
235
- - lib/commands/common/thor/push_to_remote.rb
236
- - lib/commands/common/thor/remotes.rb
237
- - lib/commands/common/thor/reparse.rb
238
- - lib/commands/common/thor/set_required_attributes.rb
239
- - lib/commands/thor/account.rb
240
- - lib/commands/thor/assembly.rb
241
- - lib/commands/thor/attribute.rb
242
- - lib/commands/thor/component.rb
243
- - lib/commands/thor/component_module.rb
244
- - lib/commands/thor/component_template.rb
245
- - lib/commands/thor/dependency.rb
246
- - lib/commands/thor/developer.rb
247
- - lib/commands/thor/dtk.rb
248
- - lib/commands/thor/library.rb
249
- - lib/commands/thor/node.rb
250
- - lib/commands/thor/node_group.rb
251
- - lib/commands/thor/node_template.rb
252
- - lib/commands/thor/project.rb
253
- - lib/commands/thor/provider.rb
254
- - lib/commands/thor/remotes.rb
255
- - lib/commands/thor/service.rb
256
- - lib/commands/thor/service_module.rb
257
- - lib/commands/thor/state_change.rb
258
- - lib/commands/thor/target.rb
259
- - lib/commands/thor/task.rb
260
- - lib/commands/thor/test_module.rb
261
- - lib/commands/thor/utils.rb
262
- - lib/commands/thor/workspace.rb
263
- - lib/config/cacert.pem
264
- - lib/config/client.conf.header
265
- - lib/config/configuration.rb
266
- - lib/config/default.conf
267
- - lib/config/disk_cacher.rb
268
- - lib/configurator.rb
269
- - lib/context_router.rb
270
- - lib/core.rb
271
- - lib/domain/git_adapter.rb
272
- - lib/domain/git_error_handler.rb
273
- - lib/domain/response.rb
274
- - lib/domain/response/error_handler.rb
275
- - lib/dtk-client/version.rb
110
+ - examples/simple/dtk.module.yaml
111
+ - examples/simple/test/README.md
112
+ - examples/spark/dtk.module.yaml
113
+ - examples/with_repo_content/deploy/puppet/manifests/hostname.pp
114
+ - examples/with_repo_content/dtk.module.yaml
115
+ - examples/with_repo_content/test/README.txt
116
+ - features/dtk.feature
117
+ - features/step_definitions/dtk_steps.rb
118
+ - features/support/env.rb
119
+ - lib/cli/command.rb
120
+ - lib/cli/command/mixin.rb
121
+ - lib/cli/command/module.rb
122
+ - lib/cli/command/module/clone.rb
123
+ - lib/cli/command/module/install.rb
124
+ - lib/cli/command/module/list.rb
125
+ - lib/cli/command/module/list_assemblies.rb
126
+ - lib/cli/command/module/push.rb
127
+ - lib/cli/command/module/uninstall.rb
128
+ - lib/cli/command/options.rb
129
+ - lib/cli/command/service.rb
130
+ - lib/cli/command/service/cancel_task.rb
131
+ - lib/cli/command/service/converge.rb
132
+ - lib/cli/command/service/create_workspace.rb
133
+ - lib/cli/command/service/destroy.rb
134
+ - lib/cli/command/service/edit.rb
135
+ - lib/cli/command/service/exec.rb
136
+ - lib/cli/command/service/exec_sync.rb
137
+ - lib/cli/command/service/list.rb
138
+ - lib/cli/command/service/list_actions.rb
139
+ - lib/cli/command/service/list_attributes.rb
140
+ - lib/cli/command/service/list_component_links.rb
141
+ - lib/cli/command/service/list_components.rb
142
+ - lib/cli/command/service/list_dependent_modules.rb
143
+ - lib/cli/command/service/list_nodes.rb
144
+ - lib/cli/command/service/list_violations.rb
145
+ - lib/cli/command/service/pull.rb
146
+ - lib/cli/command/service/push.rb
147
+ - lib/cli/command/service/set_default_target.rb
148
+ - lib/cli/command/service/set_required_attributes.rb
149
+ - lib/cli/command/service/ssh.rb
150
+ - lib/cli/command/service/stage.rb
151
+ - lib/cli/command/service/start.rb
152
+ - lib/cli/command/service/stop.rb
153
+ - lib/cli/command/service/task_status.rb
154
+ - lib/cli/command/subcommand.rb
155
+ - lib/cli/command/token.rb
156
+ - lib/cli/command/token/arg.rb
157
+ - lib/cli/command/token/class_mixin.rb
158
+ - lib/cli/command/token/flag.rb
159
+ - lib/cli/command/token/mixin.rb
160
+ - lib/cli/command/token/switch.rb
161
+ - lib/cli/context.rb
162
+ - lib/cli/context/attributes.rb
163
+ - lib/cli/context/type.rb
164
+ - lib/cli/context/type/module.rb
165
+ - lib/cli/context/type/service.rb
166
+ - lib/cli/context/type/top.rb
167
+ - lib/cli/directory_parser.rb
168
+ - lib/cli/directory_parser/file_system.rb
169
+ - lib/cli/file_obj.rb
170
+ - lib/cli/processor.rb
171
+ - lib/cli/processor/plugin/gli.rb
172
+ - lib/cli/runner.rb
173
+ - lib/cli/runner/dtkn_access.rb
174
+ - lib/cli/version.rb
175
+ - lib/client/config.rb
176
+ - lib/client/config/cacert.pem
177
+ - lib/client/config/default.conf
178
+ - lib/client/configurator.rb
179
+ - lib/client/conn.rb
180
+ - lib/client/content_generator.rb
181
+ - lib/client/error.rb
182
+ - lib/client/error/subclasses.rb
183
+ - lib/client/git_repo.rb
184
+ - lib/client/git_repo/adapter/git_gem.rb
185
+ - lib/client/git_repo/adapter/git_gem/error_handler.rb
186
+ - lib/client/logger.rb
187
+ - lib/client/operation.rb
188
+ - lib/client/operation/account.rb
189
+ - lib/client/operation/client_module_dir.rb
190
+ - lib/client/operation/client_module_dir/git_repo.rb
191
+ - lib/client/operation/module.rb
192
+ - lib/client/operation/module/clone_module.rb
193
+ - lib/client/operation/module/install.rb
194
+ - lib/client/operation/module/install/common_module.rb
195
+ - lib/client/operation/module/install/external_module.rb
196
+ - lib/client/operation/module/install_from_catalog.rb
197
+ - lib/client/operation/module/list.rb
198
+ - lib/client/operation/module/list_assemblies.rb
199
+ - lib/client/operation/module/push.rb
200
+ - lib/client/operation/module/uninstall.rb
201
+ - lib/client/operation/module_service_common.rb
202
+ - lib/client/operation/service.rb
203
+ - lib/client/operation/service/cancel_task.rb
204
+ - lib/client/operation/service/commit_and_push.rb
205
+ - lib/client/operation/service/converge.rb
206
+ - lib/client/operation/service/create_workspace.rb
207
+ - lib/client/operation/service/destroy.rb
208
+ - lib/client/operation/service/edit.rb
209
+ - lib/client/operation/service/exec.rb
210
+ - lib/client/operation/service/list.rb
211
+ - lib/client/operation/service/list_actions.rb
212
+ - lib/client/operation/service/list_attributes.rb
213
+ - lib/client/operation/service/list_component_links.rb
214
+ - lib/client/operation/service/list_components.rb
215
+ - lib/client/operation/service/list_dependent_modules.rb
216
+ - lib/client/operation/service/list_nodes.rb
217
+ - lib/client/operation/service/list_violations.rb
218
+ - lib/client/operation/service/pull.rb
219
+ - lib/client/operation/service/set_default_target.rb
220
+ - lib/client/operation/service/set_required_attributes.rb
221
+ - lib/client/operation/service/ssh.rb
222
+ - lib/client/operation/service/stage.rb
223
+ - lib/client/operation/service/start.rb
224
+ - lib/client/operation/service/stop.rb
225
+ - lib/client/operation/service/task_status.rb
226
+ - lib/client/operation/service/task_status/refresh_mode.rb
227
+ - lib/client/operation/service/task_status/snapshot_mode.rb
228
+ - lib/client/operation/service/task_status/stream_mode.rb
229
+ - lib/client/operation/service/task_status/stream_mode/element.rb
230
+ - lib/client/operation/service/task_status/stream_mode/element/format.rb
231
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task.rb
232
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/result.rb
233
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/result/action.rb
234
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/result/components.rb
235
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/result/node_level.rb
236
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/steps.rb
237
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/steps/action.rb
238
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/steps/components.rb
239
+ - lib/client/operation/service/task_status/stream_mode/element/hierarchical_task/steps/node_level.rb
240
+ - lib/client/operation/service/task_status/stream_mode/element/no_results.rb
241
+ - lib/client/operation/service/task_status/stream_mode/element/render.rb
242
+ - lib/client/operation/service/task_status/stream_mode/element/stage.rb
243
+ - lib/client/operation/service/task_status/stream_mode/element/stage/render.rb
244
+ - lib/client/operation/service/task_status/stream_mode/element/task_end.rb
245
+ - lib/client/operation/service/task_status/stream_mode/element/task_start.rb
246
+ - lib/client/operation_args.rb
247
+ - lib/client/render.rb
248
+ - lib/client/render/view/simple.rb
249
+ - lib/client/render/view/table.rb
250
+ - lib/client/render/view/table/processor.rb
251
+ - lib/client/response.rb
252
+ - lib/client/response/error_handler.rb
253
+ - lib/client/response/render_helper.rb
254
+ - lib/client/response/subclasses.rb
255
+ - lib/client/session.rb
256
+ - lib/client/util.rb
257
+ - lib/client/util/auxiliary.rb
258
+ - lib/client/util/console.rb
259
+ - lib/client/util/disk_cacher.rb
260
+ - lib/client/util/dtk_path.rb
261
+ - lib/client/util/hash_with_optional_keys.rb
262
+ - lib/client/util/interactive_wizard.rb
263
+ - lib/client/util/module_ref.rb
264
+ - lib/client/util/os_util.rb
265
+ - lib/client/util/os_util/print.rb
266
+ - lib/client/util/post_body.rb
267
+ - lib/client/util/query_string_hash.rb
268
+ - lib/client/util/remote_dependency.rb
269
+ - lib/client/util/ssh_util.rb
270
+ - lib/client/util/validation.rb
271
+ - lib/dtk_cli.rb
276
272
  - lib/dtk_client.rb
277
- - lib/dtk_constants.rb
278
- - lib/dtk_error.rb
279
- - lib/dtk_logger.rb
280
- - lib/error.rb
281
- - lib/execute.rb
282
- - lib/execute/cli_pure/cli_rerouter.rb
283
- - lib/execute/command.rb
284
- - lib/execute/command/api_call.rb
285
- - lib/execute/command/api_call/map.rb
286
- - lib/execute/command/api_call/service.rb
287
- - lib/execute/command/api_call/translation_term.rb
288
- - lib/execute/command/rest_call.rb
289
- - lib/execute/command_processor.rb
290
- - lib/execute/command_processor/rest_call.rb
291
- - lib/execute/error_usage.rb
292
- - lib/execute/execute_context.rb
293
- - lib/execute/execute_context/result_store.rb
294
- - lib/execute/script.rb
295
- - lib/execute/script/add_tenant.rb
296
- - lib/git-logs/git.log
297
- - lib/parser/adapters/option_parser.rb
298
- - lib/parser/adapters/thor.rb
299
- - lib/parser/adapters/thor/common_option_defs.rb
300
- - lib/require_first.rb
301
- - lib/search_hash.rb
302
- - lib/shell.rb
303
- - lib/shell/context.rb
304
- - lib/shell/context_aux.rb
305
- - lib/shell/domain/active_context.rb
306
- - lib/shell/domain/context_entity.rb
307
- - lib/shell/domain/context_params.rb
308
- - lib/shell/domain/override_tasks.rb
309
- - lib/shell/domain/shadow_entity.rb
310
- - lib/shell/header_shell.rb
311
- - lib/shell/help_monkey_patch.rb
312
- - lib/shell/interactive_wizard.rb
313
- - lib/shell/message_queue.rb
314
- - lib/shell/parse_monkey_patch.rb
315
- - lib/shell/status_monitor.rb
316
- - lib/task_status.rb
317
- - lib/task_status/refresh_mode.rb
318
- - lib/task_status/snapshot_mode.rb
319
- - lib/task_status/stream_mode.rb
320
- - lib/task_status/stream_mode/element.rb
321
- - lib/task_status/stream_mode/element/format.rb
322
- - lib/task_status/stream_mode/element/hierarchical_task.rb
323
- - lib/task_status/stream_mode/element/hierarchical_task/result.rb
324
- - lib/task_status/stream_mode/element/hierarchical_task/result/action.rb
325
- - lib/task_status/stream_mode/element/hierarchical_task/result/components.rb
326
- - lib/task_status/stream_mode/element/hierarchical_task/result/node_level.rb
327
- - lib/task_status/stream_mode/element/hierarchical_task/steps.rb
328
- - lib/task_status/stream_mode/element/hierarchical_task/steps/action.rb
329
- - lib/task_status/stream_mode/element/hierarchical_task/steps/components.rb
330
- - lib/task_status/stream_mode/element/hierarchical_task/steps/node_level.rb
331
- - lib/task_status/stream_mode/element/no_results.rb
332
- - lib/task_status/stream_mode/element/render.rb
333
- - lib/task_status/stream_mode/element/stage.rb
334
- - lib/task_status/stream_mode/element/stage/render.rb
335
- - lib/task_status/stream_mode/element/task_end.rb
336
- - lib/task_status/stream_mode/element/task_start.rb
337
- - lib/util/common_util.rb
338
- - lib/util/console.rb
339
- - lib/util/dtk_puppet.rb
340
- - lib/util/module_util.rb
341
- - lib/util/os_util.rb
342
- - lib/util/permission_util.rb
343
- - lib/util/remote_dependency_util.rb
344
- - lib/util/ssh_util.rb
345
- - lib/view_processor.rb
346
- - lib/view_processor/augmented_simple_list.rb
347
- - lib/view_processor/hash_pretty_print.rb
348
- - lib/view_processor/simple_list.rb
349
- - lib/view_processor/table_print.rb
350
- - puppet/manifests/init.pp
351
- - puppet/manifests/params.pp
352
- - puppet/r8meta.puppet.yml
353
- - puppet/templates/bash_profile.erb
354
- - puppet/templates/client.conf.erb
355
- - puppet/templates/dtkclient.erb
356
- - spec/component_module_spec.rb
357
- - spec/dependency_spec.rb
358
- - spec/dtk_shell_spec.rb
359
- - spec/dtk_spec.rb
360
- - spec/lib/spec_helper.rb
361
- - spec/lib/spec_thor.rb
362
- - spec/node_template_spec.rb
363
- - spec/project_spec.rb
364
- - spec/repo_spec.rb
365
- - spec/response_spec.rb
366
- - spec/service_module_spec.rb
367
- - spec/service_spec.rb
368
- - spec/state_change_spec.rb
369
- - spec/table_print_spec.rb
370
- - spec/target_spec.rb
371
- - spec/task_spec.rb
372
- - views/assembly/augmented_simple_list.rb
373
- - views/assembly_template/augmented_simple_list.rb
374
- - views/list_task/augmented_simple_list.rb
375
- homepage: https://github.com/rich-reactor8/dtk-client
273
+ - test/default_test.rb
274
+ - test/test_helper.rb
275
+ homepage:
376
276
  licenses:
377
- - Apache-2.0
277
+ - Apache 2.0
378
278
  metadata: {}
379
279
  post_install_message:
380
280
  rdoc_options: []
@@ -384,7 +284,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
384
284
  requirements:
385
285
  - - ">="
386
286
  - !ruby/object:Gem::Version
387
- version: '0'
287
+ version: 1.9.3
388
288
  required_rubygems_version: !ruby/object:Gem::Requirement
389
289
  requirements:
390
290
  - - ">="
@@ -397,19 +297,8 @@ signing_key:
397
297
  specification_version: 4
398
298
  summary: DTK CLI client for DTK server interaction.
399
299
  test_files:
400
- - spec/component_module_spec.rb
401
- - spec/dependency_spec.rb
402
- - spec/dtk_shell_spec.rb
403
- - spec/dtk_spec.rb
404
- - spec/lib/spec_helper.rb
405
- - spec/lib/spec_thor.rb
406
- - spec/node_template_spec.rb
407
- - spec/project_spec.rb
408
- - spec/repo_spec.rb
409
- - spec/response_spec.rb
410
- - spec/service_module_spec.rb
411
- - spec/service_spec.rb
412
- - spec/state_change_spec.rb
413
- - spec/table_print_spec.rb
414
- - spec/target_spec.rb
415
- - spec/task_spec.rb
300
+ - features/dtk.feature
301
+ - features/step_definitions/dtk_steps.rb
302
+ - features/support/env.rb
303
+ - test/default_test.rb
304
+ - test/test_helper.rb
data/Gemfile_dev DELETED
@@ -1,13 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- # dependcies are defined in gemspec file since to avoid duplication
4
- # gemspec :name => 'dtk-client'
5
- gemspec
6
-
7
- # development gems which are not included in production Gemfile
8
- gem 'rspec','~> 2.12.0'
9
- gem 'awesome_print','~> 1.1.0'
10
- gem 'looksee'
11
-
12
- gem 'ruby-debug','0.10.4' if RUBY_VERSION == '1.8.7'
13
- gem 'debugger','>= 1.6.5' if RUBY_VERSION == '1.9.3'
data/bin/dtk-execute DELETED
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # Copyright (C) 2010-2016 dtk contributors
4
- #
5
- # This file is part of the dtk project.
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- require File.expand_path('../lib/client', File.dirname(__FILE__))
21
- require File.expand_path('../lib/execute', File.dirname(__FILE__))
22
- require File.expand_path('../lib/configurator', File.dirname(__FILE__))
23
-
24
- include DTK::Client
25
-
26
- Configurator.check_config_exists
27
-
28
- # if connection parameters are not set up properly, print warning and exit dtk_shell
29
- conn = Session.get_connection()
30
- exit if validate_connection(conn)
31
-
32
- Execute::Script.execute()