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
  require 'rest_client'
2
19
  require 'json'
3
20
  require 'colorize'
@@ -1553,4 +1570,4 @@ module DTK::Client
1553
1570
  response = ContextRouter.routeTask(:service_module, "stage", new_context_params, @conn)
1554
1571
  end
1555
1572
  end
1556
- end
1573
+ 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 BaseCommandHelper
3
20
  def initialize(command,context_params=nil)
@@ -39,4 +56,4 @@ module DTK::Client
39
56
  end
40
57
 
41
58
  end
42
- end
59
+ 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/common')
2
19
  module DTK::Client
3
20
  module CloneMixin
@@ -22,7 +39,7 @@ module DTK::Client
22
39
  # clone base version first if not cloned already
23
40
  clone_base_aux(module_type, module_id, "#{module_namespace}:#{module_name}") if opts[:use_latest] && version
24
41
 
25
- # TODO: DTK-2358: comenyed out because causing error in this jira; see if need to put in in revisedform to avoid this error; below is checking wromg thing ( module_location is set to wromg thing to check)
42
+ # TODO: DTK-2358: comenyed out because causing error in this jira; see if need to put in in revisedform to avoid this error; below is checking wromg thing ( module_location is set to wromg thing to check)
26
43
  # module_location = OsUtil.module_location(module_type, "#{module_namespace}:#{module_name}", version)
27
44
  # raise DTK::Client::DtkValidationError, "#{module_type.to_s.gsub('_',' ').capitalize} '#{module_name}#{version && "-#{version}"}' already cloned!" if File.directory?(module_location) && !opts[:skip_if_exist_check]
28
45
 
@@ -62,4 +79,4 @@ module DTK::Client
62
79
  return context_params_for_module
63
80
  end
64
81
  end
65
- end
82
+ 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
  module CommonMixin
3
20
  private
@@ -68,4 +85,4 @@ module DTK::Client
68
85
  end
69
86
 
70
87
  end
71
- end
88
+ 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
  module Commands
3
20
  module Common
@@ -29,4 +46,4 @@ module DTK::Client
29
46
  end
30
47
  end
31
48
  end
32
- end
49
+ 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_base')
2
19
  module DTK; module Client; module Commands::Common
3
20
  class CreateTarget < Base
@@ -50,4 +67,4 @@ module DTK; module Client; module Commands::Common
50
67
  end
51
68
 
52
69
  end
53
- end; end; end
70
+ end; 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
  dtk_require_common_commands('thor/clone')
2
19
  dtk_require_common_commands('thor/push_clone_changes')
3
20
  dtk_require_common_commands('thor/pull_clone_changes')
@@ -235,5 +252,4 @@ end
235
252
  raise DtkValidationError, "Unsupported format type '#{format.to_s}'!"
236
253
  end
237
254
  end
238
- =end
239
-
255
+ =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_from_base('configurator')
2
19
  module DTK::Client
3
20
  module InventoryParserMixin
@@ -78,4 +95,4 @@ module DTK::Client
78
95
  ValidOsTypes = ['ubuntu', 'centos', 'redhat', 'debian']
79
96
 
80
97
  end
81
- end
98
+ 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
  module ListDiffsMixin
3
20
  def list_diffs_aux(module_type,module_id,remote,version=nil)
@@ -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_from_base("util/os_util")
2
19
  dtk_require_from_base('commands')
3
20
  dtk_require_from_base("command_helper")
@@ -195,4 +212,4 @@ module DTK::Client
195
212
 
196
213
  end
197
214
  end
198
- end
215
+ 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/clone')
2
19
  dtk_require_common_commands('thor/list_diffs')
3
20
  dtk_require_common_commands('thor/puppet_forge')
@@ -617,7 +634,8 @@ module DTK::Client
617
634
 
618
635
  def clone_module_aux(context_params, internal_trigger = false)
619
636
  module_type = get_module_type(context_params)
620
- thor_options = context_params.get_forwarded_options() || options
637
+ forward_options = context_params.get_forwarded_options()
638
+ thor_options = forward_options.empty? ? options : forward_options
621
639
  module_id = context_params.retrieve_arguments([REQ_MODULE_ID], method_argument_names)
622
640
  module_name = context_params.retrieve_arguments(["#{module_type}_name".to_sym],method_argument_names)
623
641
  version = thor_options["version"]||options.version
@@ -977,4 +995,4 @@ module DTK::Client
977
995
  end
978
996
 
979
997
  end
980
- end
998
+ 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
  module NodeMixin
3
20
  def get_node_info_for_ssh_login(node_id, context_params)
@@ -33,4 +50,4 @@ module DTK::Client
33
50
  'amazon-linux' => 'ec2-user'
34
51
  }
35
52
  end
36
- end
53
+ 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
  module Poller
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
  dtk_require_common_commands('thor/common')
2
19
  module DTK::Client
3
20
  module PullCloneChangesMixin
@@ -8,5 +25,4 @@ module DTK::Client
8
25
  Helper(:git_repo).pull_changes(module_type,module_name,opts_pull)
9
26
  end
10
27
  end
11
- end
12
-
28
+ 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
  module PullFromRemoteMixin
3
20
  def pull_from_remote_aux(module_type,module_id,opts={})
@@ -132,4 +149,4 @@ module DTK::Client
132
149
 
133
150
  end
134
151
  end
135
- end
152
+ 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
  module PuppetForgeMixin
3
20
 
@@ -52,6 +69,4 @@ module DTK::Client
52
69
  end
53
70
 
54
71
  end
55
- end
56
-
57
-
72
+ 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
  module PurgeCloneMixin
3
20
  def purge_clone_aux(module_type, opts = {})
@@ -81,4 +98,4 @@ module DTK::Client
81
98
  end
82
99
 
83
100
  end
84
- end
101
+ 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/common')
2
19
  dtk_require_from_base('command_helpers/service_importer')
3
20
 
@@ -142,4 +159,4 @@ module DTK::Client
142
159
  end
143
160
  end
144
161
  end
145
- end
162
+ 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/common')
2
19
  dtk_require("../../../domain/git_adapter")
3
20
 
@@ -74,4 +91,4 @@ module DTK::Client
74
91
  end
75
92
 
76
93
  end
77
- end
94
+ 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::Client
3
20
  module RemotesMixin
@@ -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 'yaml'
2
19
 
3
20
  module DTK::Client
@@ -20,4 +37,4 @@ module DTK::Client
20
37
  end
21
38
 
22
39
  end
23
- end
40
+ 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
  module SetRequiredParamsMixin
3
20
  def set_required_attributes_aux(id,type,subtype=nil)
@@ -26,4 +43,4 @@ module DTK::Client
26
43
  end
27
44
  end
28
45
  end
29
- end
46
+ end