dtk-client 0.7.10 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +83 -49
  3. data/bin/dtk +18 -1
  4. data/bin/dtk-execute +18 -1
  5. data/bin/dtk-shell +17 -0
  6. data/dtk-client.gemspec +1 -1
  7. data/lib/auxiliary.rb +18 -1
  8. data/lib/bundler_monkey_patch.rb +17 -0
  9. data/lib/client.rb +18 -3
  10. data/lib/command_helper.rb +18 -1
  11. data/lib/command_helpers/git_repo/merge.rb +18 -1
  12. data/lib/command_helpers/git_repo.rb +18 -3
  13. data/lib/command_helpers/jenkins_client/config_xml.rb +18 -1
  14. data/lib/command_helpers/jenkins_client.rb +18 -4
  15. data/lib/command_helpers/service_importer.rb +20 -5
  16. data/lib/command_helpers/service_link.rb +18 -3
  17. data/lib/command_helpers/test_module_creator.rb +18 -1
  18. data/lib/commands/common/thor/access_control.rb +18 -1
  19. data/lib/commands/common/thor/action_result_handler.rb +17 -0
  20. data/lib/commands/common/thor/assembly_template.rb +18 -1
  21. data/lib/commands/common/thor/assembly_workspace.rb +18 -1
  22. data/lib/commands/common/thor/base_command_helper.rb +18 -1
  23. data/lib/commands/common/thor/clone.rb +19 -2
  24. data/lib/commands/common/thor/common.rb +18 -1
  25. data/lib/commands/common/thor/common_base.rb +18 -1
  26. data/lib/commands/common/thor/create_target.rb +18 -1
  27. data/lib/commands/common/thor/edit.rb +18 -2
  28. data/lib/commands/common/thor/inventory_parser.rb +18 -1
  29. data/lib/commands/common/thor/list_diffs.rb +17 -0
  30. data/lib/commands/common/thor/module/import.rb +18 -1
  31. data/lib/commands/common/thor/module.rb +20 -2
  32. data/lib/commands/common/thor/node.rb +18 -1
  33. data/lib/commands/common/thor/poller.rb +17 -0
  34. data/lib/commands/common/thor/pull_clone_changes.rb +18 -2
  35. data/lib/commands/common/thor/pull_from_remote.rb +18 -1
  36. data/lib/commands/common/thor/puppet_forge.rb +18 -3
  37. data/lib/commands/common/thor/purge_clone.rb +18 -1
  38. data/lib/commands/common/thor/push_clone_changes.rb +18 -1
  39. data/lib/commands/common/thor/push_to_remote.rb +18 -1
  40. data/lib/commands/common/thor/remotes.rb +17 -0
  41. data/lib/commands/common/thor/reparse.rb +18 -1
  42. data/lib/commands/common/thor/set_required_attributes.rb +18 -1
  43. data/lib/commands/thor/account.rb +42 -67
  44. data/lib/commands/thor/assembly.rb +18 -1
  45. data/lib/commands/thor/attribute.rb +17 -0
  46. data/lib/commands/thor/component.rb +18 -1
  47. data/lib/commands/thor/component_module.rb +18 -2
  48. data/lib/commands/thor/component_template.rb +18 -1
  49. data/lib/commands/thor/dependency.rb +18 -2
  50. data/lib/commands/thor/developer.rb +18 -1
  51. data/lib/commands/thor/dtk.rb +18 -2
  52. data/lib/commands/thor/library.rb +18 -2
  53. data/lib/commands/thor/node.rb +18 -3
  54. data/lib/commands/thor/node_group.rb +18 -2
  55. data/lib/commands/thor/node_template.rb +18 -2
  56. data/lib/commands/thor/project.rb +18 -1
  57. data/lib/commands/thor/provider.rb +18 -1
  58. data/lib/commands/thor/remotes.rb +18 -1
  59. data/lib/commands/thor/service.rb +20 -3
  60. data/lib/commands/thor/service_module.rb +19 -10
  61. data/lib/commands/thor/state_change.rb +17 -2
  62. data/lib/commands/thor/target.rb +18 -1
  63. data/lib/commands/thor/task.rb +18 -2
  64. data/lib/commands/thor/test_module.rb +18 -1
  65. data/lib/commands/thor/utils.rb +18 -1
  66. data/lib/commands/thor/workspace.rb +25 -3
  67. data/lib/commands.rb +18 -1
  68. data/lib/config/configuration.rb +18 -1
  69. data/lib/config/disk_cacher.rb +17 -0
  70. data/lib/configurator.rb +18 -2
  71. data/lib/context_router.rb +18 -1
  72. data/lib/core.rb +18 -1
  73. data/lib/domain/git_adapter.rb +18 -1
  74. data/lib/domain/git_error_handler.rb +17 -0
  75. data/lib/domain/response/error_handler.rb +18 -2
  76. data/lib/domain/response.rb +18 -2
  77. data/lib/dtk-client/version.rb +18 -1
  78. data/lib/dtk_client.rb +17 -0
  79. data/lib/dtk_constants.rb +18 -1
  80. data/lib/dtk_error.rb +18 -1
  81. data/lib/dtk_logger.rb +18 -1
  82. data/lib/error.rb +18 -1
  83. data/lib/execute/cli_pure/cli_rerouter.rb +17 -0
  84. data/lib/execute/command/api_call/map.rb +18 -1
  85. data/lib/execute/command/api_call/service.rb +18 -1
  86. data/lib/execute/command/api_call/translation_term.rb +18 -2
  87. data/lib/execute/command/api_call.rb +18 -1
  88. data/lib/execute/command/rest_call.rb +18 -1
  89. data/lib/execute/command.rb +18 -1
  90. data/lib/execute/command_processor/rest_call.rb +18 -2
  91. data/lib/execute/command_processor.rb +18 -1
  92. data/lib/execute/error_usage.rb +17 -0
  93. data/lib/execute/execute_context/result_store.rb +18 -1
  94. data/lib/execute/execute_context.rb +18 -2
  95. data/lib/execute/script/add_tenant.rb +18 -1
  96. data/lib/execute/script.rb +18 -2
  97. data/lib/execute.rb +18 -2
  98. data/lib/parser/adapters/option_parser.rb +18 -1
  99. data/lib/parser/adapters/thor/common_option_defs.rb +18 -1
  100. data/lib/parser/adapters/thor.rb +18 -1
  101. data/lib/require_first.rb +18 -1
  102. data/lib/search_hash.rb +18 -1
  103. data/lib/shell/context.rb +22 -5
  104. data/lib/shell/context_aux.rb +17 -0
  105. data/lib/shell/domain/active_context.rb +17 -0
  106. data/lib/shell/domain/context_entity.rb +17 -0
  107. data/lib/shell/domain/context_params.rb +18 -1
  108. data/lib/shell/domain/override_tasks.rb +18 -1
  109. data/lib/shell/domain/shadow_entity.rb +18 -1
  110. data/lib/shell/header_shell.rb +17 -0
  111. data/lib/shell/help_monkey_patch.rb +17 -0
  112. data/lib/shell/interactive_wizard.rb +46 -29
  113. data/lib/shell/message_queue.rb +18 -1
  114. data/lib/shell/parse_monkey_patch.rb +17 -0
  115. data/lib/shell/status_monitor.rb +17 -0
  116. data/lib/shell.rb +18 -5
  117. data/lib/task_status/refresh_mode.rb +18 -1
  118. data/lib/task_status/snapshot_mode.rb +18 -1
  119. data/lib/task_status/stream_mode/element/format.rb +18 -3
  120. data/lib/task_status/stream_mode/element/hierarchical_task/result/action.rb +18 -1
  121. data/lib/task_status/stream_mode/element/hierarchical_task/result/components.rb +17 -0
  122. data/lib/task_status/stream_mode/element/hierarchical_task/result/node_level.rb +17 -0
  123. data/lib/task_status/stream_mode/element/hierarchical_task/result.rb +18 -1
  124. data/lib/task_status/stream_mode/element/hierarchical_task/steps/action.rb +18 -2
  125. data/lib/task_status/stream_mode/element/hierarchical_task/steps/components.rb +18 -1
  126. data/lib/task_status/stream_mode/element/hierarchical_task/steps/node_level.rb +18 -1
  127. data/lib/task_status/stream_mode/element/hierarchical_task/steps.rb +18 -1
  128. data/lib/task_status/stream_mode/element/hierarchical_task.rb +18 -1
  129. data/lib/task_status/stream_mode/element/no_results.rb +17 -1
  130. data/lib/task_status/stream_mode/element/render.rb +18 -1
  131. data/lib/task_status/stream_mode/element/stage/render.rb +18 -1
  132. data/lib/task_status/stream_mode/element/stage.rb +18 -1
  133. data/lib/task_status/stream_mode/element/task_end.rb +18 -2
  134. data/lib/task_status/stream_mode/element/task_start.rb +18 -2
  135. data/lib/task_status/stream_mode/element.rb +18 -2
  136. data/lib/task_status/stream_mode.rb +18 -1
  137. data/lib/task_status.rb +18 -1
  138. data/lib/util/common_util.rb +17 -0
  139. data/lib/util/console.rb +18 -1
  140. data/lib/util/dtk_puppet.rb +17 -0
  141. data/lib/util/module_util.rb +18 -1
  142. data/lib/util/os_util.rb +19 -1
  143. data/lib/util/permission_util.rb +18 -1
  144. data/lib/util/remote_dependency_util.rb +17 -0
  145. data/lib/util/ssh_util.rb +17 -0
  146. data/lib/view_processor/augmented_simple_list.rb +18 -1
  147. data/lib/view_processor/hash_pretty_print.rb +18 -1
  148. data/lib/view_processor/simple_list.rb +18 -1
  149. data/lib/view_processor/table_print.rb +18 -5
  150. data/lib/view_processor.rb +18 -1
  151. data/puppet/r8meta.puppet.yml +17 -0
  152. metadata +19 -19
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  dtk_require_common_commands('thor/common_base')
2
19
  dtk_require_common_commands('thor/inventory_parser')
3
20
  dtk_require_common_commands('thor/create_target')
@@ -228,4 +245,4 @@ also put in list property
228
245
  end
229
246
  =end
230
247
  end
231
- end
248
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK::Client
2
19
  class Task < CommandBaseThor
3
20
 
@@ -96,5 +113,4 @@ module DTK::Client
96
113
  end
97
114
 
98
115
  end
99
- end
100
-
116
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  dtk_require_common_commands('thor/module')
2
19
  require 'fileutils'
3
20
 
@@ -290,4 +307,4 @@ module DTK::Client
290
307
  end
291
308
  end
292
309
  end
293
- end
310
+ end
@@ -1,4 +1,21 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK::Client
2
19
  class Utils < CommandBaseThor
3
20
  end
4
- end
21
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'rest_client'
2
19
  require 'json'
3
20
  require 'colorize'
@@ -216,7 +233,7 @@ module DTK::Client
216
233
  # converge_aux(context_params, opts)
217
234
  # end
218
235
 
219
- # # TODO: DEPRECATE: keeping around for backward compatibiity but will be deprecating execute-workflow
236
+ # TODO: DEPRECATE: keeping around for backward compatibiity but will be deprecating execute-workflow
220
237
  # desc "WORKSPACE-NAME/ID execute-workflow WORKFLOW-ACTION [WORKFLOW-PARAMS] [-m COMMIT-MSG]", "Execute workflow.", :hide => true
221
238
  # method_option "commit_msg",:aliases => "-m",
222
239
  # :type => :string,
@@ -561,6 +578,11 @@ module DTK::Client
561
578
  list_actions_aux(context_params)
562
579
  end
563
580
 
581
+ # desc "WORKSPACE-NAME/ID list-workflows", "List the workflows associated with the workspace.", :hide => true
582
+ # def list_workflows(context_params)
583
+ # workflow_list_aux(context_params)
584
+ # end
585
+
564
586
  desc "WORKSPACE-NAME/ID list-violations", "Finds violations in the workspace that will prevent a converge operation."
565
587
  def list_violations(context_params)
566
588
  list_violations_aux(context_params)
@@ -651,6 +673,6 @@ module DTK::Client
651
673
  def stage(context_params)
652
674
  stage_aux(context_params)
653
675
  end
654
- end
655
- end
656
676
 
677
+ end
678
+ end
data/lib/commands.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK
2
19
  module Client
3
20
  module CommandBase
@@ -37,4 +54,4 @@ module DTK
37
54
  end
38
55
 
39
56
  end
40
- end
57
+ end
@@ -1,4 +1,21 @@
1
1
  #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+ #
2
19
  # Singleton patern to hold configuration for dtk client.
3
20
  #
4
21
  # DEFAULT: Configuration
@@ -79,4 +96,4 @@ module DTK
79
96
  end
80
97
  end
81
98
  end
82
- end
99
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'net/http'
2
19
  #require 'md5' => Ruby 1.8.7 specific
3
20
  require File.expand_path('../util/os_util', File.dirname(__FILE__))
data/lib/configurator.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'rubygems'
2
19
  require 'fileutils'
3
20
  dtk_require_from_base('util/os_util')
@@ -156,5 +173,4 @@ module DTK
156
173
  end
157
174
  end
158
175
  end
159
- end
160
-
176
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK
2
19
  module Client
3
20
 
@@ -24,4 +41,4 @@ module DTK
24
41
  end
25
42
 
26
43
  end
27
- end
44
+ end
data/lib/core.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  #TODO: user common utils in DTK::Common::Rest
2
19
 
3
20
  require 'rubygems'
@@ -469,4 +486,4 @@ module DTK
469
486
  end
470
487
  end
471
488
  end
472
- end
489
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'git'
2
19
  # monkey patch
3
20
  class Git::Lib
@@ -392,4 +409,4 @@ module DTK
392
409
 
393
410
  end
394
411
  end
395
- end
412
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
 
2
19
  module DTK
3
20
  module Client
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK; module Client
2
19
  class Response
3
20
  module ErrorHandlerMixin
@@ -57,5 +74,4 @@ module DTK; module Client
57
74
 
58
75
  end
59
76
  end
60
- end; end
61
-
77
+ end; end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  # This is wrapper for holding rest response information as well as
2
19
  # passing selection of ViewProcessor from Thor selection to render view
3
20
  # selection
@@ -265,5 +282,4 @@ module DTK
265
282
  end
266
283
  end
267
284
  end
268
- end
269
-
285
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkClient
2
- VERSION="0.7.10"
19
+ VERSION="0.8.0"
3
20
  end
data/lib/dtk_client.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require File.expand_path('../client', __FILE__)
2
19
  require File.expand_path('../configurator', __FILE__)
3
20
  require File.expand_path('../parser/adapters/thor', __FILE__)
data/lib/dtk_constants.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'singleton'
2
19
  dtk_require("config/disk_cacher")
3
20
 
@@ -20,4 +37,4 @@ class PPColumns
20
37
  return @constants[symbol_identifier.to_s]
21
38
  end
22
39
 
23
- end
40
+ end
data/lib/dtk_error.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK
2
19
  module Client
3
20
  class DtkError < Error
@@ -88,4 +105,4 @@ module DTK
88
105
 
89
106
  end
90
107
  end
91
- end
108
+ end
data/lib/dtk_logger.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  ##
2
19
  # DtkLogger singleton to be used for logging.
3
20
  #
@@ -93,4 +110,4 @@ class DtkLogger
93
110
  def no_log_permissions(dir)
94
111
  puts "[WARNING] User (#{DTK::Common::Aux.running_process_user()}) does not have permissions to create a log file in log directory (#{dir})"
95
112
  end
96
- end
113
+ end
data/lib/error.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  ##
2
19
  # Application expected errors will be handled trough DtkError. All else will be treaded
3
20
  # as Internal Server error. Logs will be added to ~/dtk.log for developers to investigate
@@ -65,4 +82,4 @@ module DTK
65
82
  class ExitSignal < DTK::Client::Error
66
83
  end
67
84
  end
68
- end
85
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK
2
19
  class CLIRerouter
3
20
 
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  class DTK::Client::Execute
2
19
  class Command::APICall
3
20
  class Map < Hash
@@ -40,4 +57,4 @@ class DTK::Client::Execute
40
57
 
41
58
  end
42
59
  end
43
- end
60
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  class DTK::Client::Execute
2
19
  class Command::APICall
3
20
  class Service < self
@@ -71,4 +88,4 @@ class DTK::Client::Execute
71
88
 
72
89
  end
73
90
  end
74
- end
91
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  class DTK::Client::Execute
2
19
  class Command::APICall
3
20
 
@@ -99,5 +116,4 @@ class DTK::Client::Execute
99
116
  end
100
117
  end
101
118
  end
102
- end
103
-
119
+ end