dtk-client 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.license_header +15 -0
- data/LICENSE +202 -0
- data/README.md +25 -2
- data/Rakefile +17 -1
- data/bin/dtk +18 -1
- data/lib/cli/command/account/add_ssh_key.rb +40 -0
- data/lib/cli/command/account/delete_ssh_key.rb +43 -0
- data/lib/cli/command/account/list_ssh_keys.rb +31 -0
- data/lib/cli/command/account/register_catalog_user.rb +31 -0
- data/lib/cli/command/account/set_catalog_credentials.rb +31 -0
- data/lib/cli/command/account/set_password.rb +31 -0
- data/lib/cli/command/account.rb +31 -0
- data/lib/cli/command/mixin.rb +1 -1
- data/lib/cli/command/module/delete_from_remote.rb +36 -0
- data/lib/cli/command/module/install.rb +15 -5
- data/lib/cli/command/module/publish.rb +34 -0
- data/lib/cli/command/module/pull_dtkn.rb +35 -0
- data/lib/cli/command/module/push_dtkn.rb +34 -0
- data/lib/cli/command/module/stage.rb +1 -1
- data/lib/cli/command/module/uninstall.rb +13 -7
- data/lib/cli/command/module.rb +14 -1
- data/lib/cli/command/options.rb +2 -0
- data/lib/cli/command/service/converge.rb +1 -1
- data/lib/cli/command/service/delete.rb +1 -1
- data/lib/cli/command/service/exec.rb +5 -2
- data/lib/cli/command/service/exec_sync.rb +4 -1
- data/lib/cli/command/service/{list_dependent_modules.rb → list_dependencies.rb} +3 -3
- data/lib/cli/command/service/uninstall.rb +11 -4
- data/lib/cli/command/service.rb +1 -1
- data/lib/cli/command/token.rb +3 -0
- data/lib/cli/command.rb +1 -1
- data/lib/cli/context/attributes.rb +1 -1
- data/lib/cli/context/type/account.rb +42 -0
- data/lib/cli/context/type/module.rb +2 -1
- data/lib/cli/context/type/service.rb +2 -1
- data/lib/cli/context.rb +82 -12
- data/lib/cli/version.rb +18 -2
- data/lib/client/git_repo/adapter/git_gem.rb +62 -4
- data/lib/client/git_repo.rb +33 -2
- data/lib/client/load_source/component_info.rb +44 -0
- data/lib/client/load_source/service_info.rb +47 -0
- data/lib/client/load_source.rb +148 -0
- data/lib/client/{util/module_ref.rb → module_ref.rb} +19 -0
- data/lib/client/operation/account/add_ssh_key.rb +47 -0
- data/lib/client/operation/account/delete_ssh_key.rb +41 -0
- data/lib/client/operation/account/list_ssh_keys.rb +28 -0
- data/lib/client/operation/account/register_catalog_user.rb +49 -0
- data/lib/client/operation/account/set_catalog_credentials.rb +32 -0
- data/lib/client/operation/account/set_password.rb +59 -0
- data/lib/client/operation/account.rb +7 -4
- data/lib/client/operation/client_module_dir/git_repo/internal/dtkn.rb +83 -0
- data/lib/client/operation/client_module_dir/git_repo/internal.rb +328 -0
- data/lib/client/operation/client_module_dir/git_repo.rb +73 -249
- data/lib/client/operation/client_module_dir.rb +2 -2
- data/lib/client/operation/module/clone_module.rb +41 -25
- data/lib/client/operation/module/delete_from_remote.rb +79 -0
- data/lib/client/operation/module/install/common_module.rb +10 -21
- data/lib/client/operation/module/install/dependent_modules/component_dependency_tree/cache.rb +47 -0
- data/lib/client/operation/module/install/dependent_modules/component_dependency_tree/resolve_modules.rb +69 -0
- data/lib/client/operation/module/install/dependent_modules/component_dependency_tree.rb +143 -0
- data/lib/client/operation/module/install/dependent_modules/component_module.rb +103 -0
- data/lib/client/operation/module/install/dependent_modules/prompt_helper.rb +54 -0
- data/lib/client/operation/module/install/dependent_modules.rb +65 -0
- data/lib/client/operation/module/install/mixin.rb +42 -0
- data/lib/client/operation/module/install/module_ref.rb +48 -0
- data/lib/client/operation/module/install/print_helper.rb +129 -0
- data/lib/client/operation/module/install.rb +68 -25
- data/lib/client/operation/module/install_from_catalog.rb +23 -32
- data/lib/client/operation/module/list.rb +4 -1
- data/lib/client/operation/module/publish.rb +78 -0
- data/lib/client/operation/module/pull_dtkn.rb +76 -0
- data/lib/client/operation/module/push.rb +16 -2
- data/lib/client/operation/module/push_dtkn/convert_source/component_info.rb +42 -0
- data/lib/client/operation/module/push_dtkn/convert_source/service_info.rb +47 -0
- data/lib/client/operation/module/push_dtkn/convert_source.rb +155 -0
- data/lib/client/operation/module/push_dtkn.rb +79 -0
- data/lib/client/operation/module/stage.rb +3 -2
- data/lib/client/operation/module/uninstall.rb +36 -0
- data/lib/client/operation/module.rb +23 -4
- data/lib/client/operation/service/converge.rb +3 -2
- data/lib/client/operation/service/delete.rb +2 -1
- data/lib/client/operation/service/destroy.rb +1 -1
- data/lib/client/operation/service/exec.rb +4 -0
- data/lib/client/operation/service/{list_dependent_modules.rb → list_dependencies.rb} +1 -1
- data/lib/client/operation/service/stage.rb +1 -1
- data/lib/client/operation/service/uninstall.rb +3 -3
- data/lib/client/operation/service.rb +1 -1
- data/lib/client/service_and_component_info/transform_from/info/component.rb +57 -0
- data/lib/client/service_and_component_info/transform_from/info/service.rb +53 -0
- data/lib/client/service_and_component_info/transform_from/info.rb +84 -0
- data/lib/client/service_and_component_info/transform_from.rb +47 -0
- data/lib/client/service_and_component_info/transform_to/info/component.rb +53 -0
- data/lib/client/service_and_component_info/transform_to/info/service.rb +49 -0
- data/lib/client/service_and_component_info/transform_to/info.rb +111 -0
- data/lib/client/service_and_component_info/transform_to.rb +49 -0
- data/lib/client/service_and_component_info.rb +26 -0
- data/lib/client/util/console.rb +22 -0
- data/lib/client/util/interactive_wizard.rb +90 -0
- data/lib/client/util.rb +18 -2
- data/lib/dtk_client.rb +5 -2
- metadata +63 -15
- data/lib/client/content_generator.rb +0 -189
- data/lib/client/operation/module/install/external_module.rb +0 -205
@@ -0,0 +1,111 @@
|
|
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
|
+
|
19
|
+
module DTK::Client
|
20
|
+
class ServiceAndComponentInfo::TransformTo
|
21
|
+
class Info
|
22
|
+
require_relative('info/service')
|
23
|
+
require_relative('info/component')
|
24
|
+
|
25
|
+
def initialize(content_dir, dtk_dsl_parse_helper, parsed_common_module)
|
26
|
+
@content_dir = content_dir
|
27
|
+
@dtk_dsl_info_processor = dtk_dsl_parse_helper.info_processor(info_type)
|
28
|
+
@parsed_common_module = parsed_common_module
|
29
|
+
|
30
|
+
# dynamically computed
|
31
|
+
@directory_file_paths = nil
|
32
|
+
end
|
33
|
+
private :initialize
|
34
|
+
|
35
|
+
def self.create(info_type, content_dir, dtk_dsl_parse_helper, parsed_common_module)
|
36
|
+
case info_type
|
37
|
+
when :service_info then Service.new(content_dir, dtk_dsl_parse_helper, parsed_common_module)
|
38
|
+
when :component_info then Component.new(content_dir, dtk_dsl_parse_helper, parsed_common_module)
|
39
|
+
else
|
40
|
+
fail Error, "Unexpected info_type '#{info_type}'"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def file_path__content_array
|
45
|
+
files_array = @dtk_dsl_info_processor.output_path_text_pairs.inject([]) { |a, (path, content)| a + [{ path: path, content: content }] }
|
46
|
+
|
47
|
+
if info_type == :component_info
|
48
|
+
cmp_files_array = component_info_related_files.inject([]) { |a, (path, content)| a + [{ path: path, content: content, full_path: true }] }
|
49
|
+
files_array.concat(cmp_files_array)
|
50
|
+
end
|
51
|
+
|
52
|
+
files_array
|
53
|
+
end
|
54
|
+
|
55
|
+
def component_info_related_files
|
56
|
+
files = {}
|
57
|
+
|
58
|
+
matches = directory_file_paths.select { |path| !path.include?('dtk.module.yaml') && !path.include?('module_refs.yaml') }
|
59
|
+
matches.each { |file| files.merge!("#{file}" => get_raw_content?(file)) if File.file?(file) }
|
60
|
+
|
61
|
+
files
|
62
|
+
end
|
63
|
+
|
64
|
+
def legacy_assemblies?
|
65
|
+
matches = directory_file_paths.select { |path| legacy_assemblies_input_files_processor.match?(path) }
|
66
|
+
!matches.empty?
|
67
|
+
end
|
68
|
+
|
69
|
+
private
|
70
|
+
|
71
|
+
def add_content!(input_files_processor, path)
|
72
|
+
input_files_processor.add_canonical_hash_content!(path, @parsed_common_module)
|
73
|
+
end
|
74
|
+
|
75
|
+
def input_files_processor(type)
|
76
|
+
@dtk_dsl_info_processor.indexed_input_files[type] || raise_missing_type_error(type)
|
77
|
+
end
|
78
|
+
|
79
|
+
def module_refs_path
|
80
|
+
matches = directory_file_paths.select { |path| module_ref_input_files_processor.match?(path) }
|
81
|
+
raise Error, "Unexpected that multiple module ref files" if matches.size > 1
|
82
|
+
matches.first
|
83
|
+
end
|
84
|
+
|
85
|
+
def module_ref_input_files_processor
|
86
|
+
@module_ref_input_files_processor = input_files_processor(:module_refs)
|
87
|
+
end
|
88
|
+
|
89
|
+
def assemblies_input_files_processor
|
90
|
+
@assemblies_input_files_processor = input_files_processor(:assemblies)
|
91
|
+
end
|
92
|
+
|
93
|
+
def legacy_assemblies_input_files_processor
|
94
|
+
@legacy_assemblies_input_files_processor = input_files_processor(:legacy_assemblies)
|
95
|
+
end
|
96
|
+
|
97
|
+
def directory_file_paths
|
98
|
+
@directory_file_paths ||= Dir.glob("#{@content_dir}/**/*")
|
99
|
+
end
|
100
|
+
|
101
|
+
def get_raw_content?(file_path)
|
102
|
+
File.open(file_path).read if file_path and File.exists?(file_path)
|
103
|
+
end
|
104
|
+
|
105
|
+
def raise_missing_type_error(type)
|
106
|
+
raise Error, "Unexpected that no indexed_input_files of type '#{type}'"
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,49 @@
|
|
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
|
+
module DTK::Client
|
19
|
+
module ServiceAndComponentInfo
|
20
|
+
# TODO: DTK-2765: methods use wen pushing to dtkn that transform to component and info form
|
21
|
+
# This wil call functions that parse in :DTK::DSL::ServiceAndComponentInfo::TransformTO
|
22
|
+
class TransformTo
|
23
|
+
require_relative('transform_to/info')
|
24
|
+
|
25
|
+
def initialize(content_dir, module_ref, version, parsed_common_module)
|
26
|
+
@content_dir = content_dir
|
27
|
+
@module_ref = module_ref
|
28
|
+
@version = version
|
29
|
+
@dtk_dsl_parse_helper = dtk_dsl_transform_class.new(module_ref.namespace, module_ref.module_name, version)
|
30
|
+
@parsed_common_module = parsed_common_module
|
31
|
+
end
|
32
|
+
|
33
|
+
def info_processor(info_type)
|
34
|
+
Info.create(info_type, @content_dir, @dtk_dsl_parse_helper, @parsed_common_module)
|
35
|
+
end
|
36
|
+
|
37
|
+
def output_path_text_pairs
|
38
|
+
@dtk_dsl_parse_helper.output_path_text_pairs
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
def dtk_dsl_transform_class
|
44
|
+
::DTK::DSL::ServiceAndComponentInfo::TransformTo
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
@@ -0,0 +1,26 @@
|
|
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
|
+
module DTK::Client
|
19
|
+
class ContentGenerator
|
20
|
+
module ServiceAndComponentInfo
|
21
|
+
require_relative('service_and_component_info/transform_from')
|
22
|
+
require_relative('service_and_component_info/transform_to')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
data/lib/client/util/console.rb
CHANGED
@@ -86,6 +86,28 @@ module DTK::Client
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
+
def self.password_prompt(message, options = [])
|
90
|
+
begin
|
91
|
+
while line = (HighLine.ask("#{message}") { |q| q.echo = false})
|
92
|
+
raise Interrupt if line.empty?
|
93
|
+
return line
|
94
|
+
end
|
95
|
+
rescue Interrupt
|
96
|
+
return nil
|
97
|
+
ensure
|
98
|
+
puts "\n" if line.nil?
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
def self.version_prompt(versions, message, opts = {})
|
103
|
+
prompt_context(opts) do
|
104
|
+
HighLine.choose do |menu|
|
105
|
+
menu.prompt = message
|
106
|
+
menu.choices(*versions)
|
107
|
+
menu.choice('all') if opts[:add_all]
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
89
111
|
# opts can have keys
|
90
112
|
# :disable_ctrl_c - Boolean (default: true)
|
91
113
|
def self.prompt_context(opts = {}, &body)
|
@@ -62,6 +62,96 @@ module DTK::Client
|
|
62
62
|
|
63
63
|
return user_provided_params
|
64
64
|
end
|
65
|
+
|
66
|
+
def interactive_user_input(wizard_dsl, recursion_call = false)
|
67
|
+
results = {}
|
68
|
+
wizard_dsl = [wizard_dsl].flatten
|
69
|
+
begin
|
70
|
+
wizard_dsl.each do |meta_input|
|
71
|
+
input_name = meta_input.keys.first
|
72
|
+
display_name = input_name.to_s.gsub(/_/,' ').capitalize
|
73
|
+
metadata = meta_input.values.first
|
74
|
+
|
75
|
+
# default values
|
76
|
+
output = display_name
|
77
|
+
validation = metadata[:validation]
|
78
|
+
is_password = false
|
79
|
+
is_required = metadata[:requried]
|
80
|
+
|
81
|
+
case metadata[:type]
|
82
|
+
when nil
|
83
|
+
when :email
|
84
|
+
validation = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
|
85
|
+
when :question
|
86
|
+
output = "#{metadata[:question]}"
|
87
|
+
validation = metadata[:validation]
|
88
|
+
when :password
|
89
|
+
is_password = true
|
90
|
+
is_required = true
|
91
|
+
when :repeat_password
|
92
|
+
is_password = true
|
93
|
+
is_required = true
|
94
|
+
validation = /^#{results[:password]}$/
|
95
|
+
when :selection
|
96
|
+
options = ""
|
97
|
+
display_field = metadata[:display_field]
|
98
|
+
metadata[:options].each_with_index do |o,i|
|
99
|
+
if display_field
|
100
|
+
options += "\t#{i+1}. #{o[display_field]}\n"
|
101
|
+
else
|
102
|
+
options += "\t#{i+1}. #{o}\n"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
options += OsUtil.colorize("\t0. Skip\n", :yellow) if metadata[:skip_option]
|
106
|
+
output = "Select '#{display_name}': \n\n #{options} \n "
|
107
|
+
validation_range_start = metadata[:skip_option] ? 0 : 1
|
108
|
+
validation = (validation_range_start..metadata[:options].size).to_a
|
109
|
+
when :group
|
110
|
+
# recursion call to populate second level of hash params
|
111
|
+
puts " Enter '#{display_name}': "
|
112
|
+
results[input_name] = self.interactive_user_input(metadata[:options], true)
|
113
|
+
next
|
114
|
+
end
|
115
|
+
|
116
|
+
input = text_input(output, is_required, validation, is_password)
|
117
|
+
|
118
|
+
if metadata[:required_options] && !metadata[:required_options].include?(input)
|
119
|
+
# case where we have to give explicit permission, if answer is not affirmative
|
120
|
+
# we terminate rest of the wizard
|
121
|
+
OsUtil.print(" #{metadata[:explanation]}", :red)
|
122
|
+
return nil
|
123
|
+
end
|
124
|
+
|
125
|
+
# post processing
|
126
|
+
if metadata[:type] == :selection
|
127
|
+
input = input.to_i == 0 ? nil : metadata[:options][input.to_i - 1]
|
128
|
+
end
|
129
|
+
|
130
|
+
results[input_name] = input
|
131
|
+
end
|
132
|
+
|
133
|
+
return results
|
134
|
+
rescue Interrupt => e
|
135
|
+
puts
|
136
|
+
raise DtkValidationError, "Exiting the wizard ..."
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
def text_input(output, is_required = false, validation_regex = nil, is_password = false)
|
141
|
+
while line = ask("#{output}: ") { |q| q.echo = !is_password }
|
142
|
+
if is_required && line.strip.empty?
|
143
|
+
puts OsUtil.colorize("Field '#{output}' is required field. ", :red)
|
144
|
+
next
|
145
|
+
end
|
146
|
+
|
147
|
+
if validation_regex && !validation_regex.match(line)
|
148
|
+
puts OsUtil.colorize("Input is not valid, please enter it again. ", :red)
|
149
|
+
next
|
150
|
+
end
|
151
|
+
|
152
|
+
return line
|
153
|
+
end
|
154
|
+
end
|
65
155
|
|
66
156
|
private
|
67
157
|
|
data/lib/client/util.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
|
require_relative('util/auxiliary')
|
3
20
|
# auxiliary must be loaded first
|
@@ -6,7 +23,6 @@ module DTK
|
|
6
23
|
require_relative('util/console')
|
7
24
|
require_relative('util/dtk_path')
|
8
25
|
require_relative('util/disk_cacher')
|
9
|
-
require_relative('util/module_ref')
|
10
26
|
require_relative('util/remote_dependency')
|
11
27
|
|
12
28
|
# hash_with_optional_keys must go before post_body and query_string
|
@@ -15,4 +31,4 @@ module DTK
|
|
15
31
|
require_relative('util/query_string_hash')
|
16
32
|
require_relative('util/interactive_wizard')
|
17
33
|
require_relative('util/validation')
|
18
|
-
end
|
34
|
+
end
|
data/lib/dtk_client.rb
CHANGED
@@ -18,7 +18,9 @@
|
|
18
18
|
module DTK
|
19
19
|
module Client
|
20
20
|
require_relative('client/util')
|
21
|
-
|
21
|
+
require_relative('client/module_ref')
|
22
|
+
|
23
|
+
# util and module_ref must be loaded first
|
22
24
|
require_relative('client/logger')
|
23
25
|
require_relative('client/error')
|
24
26
|
require_relative('client/config')
|
@@ -30,6 +32,7 @@ module DTK
|
|
30
32
|
require_relative('client/operation')
|
31
33
|
require_relative('client/operation_args')
|
32
34
|
require_relative('client/render')
|
33
|
-
require_relative('client/
|
35
|
+
require_relative('client/service_and_component_info')
|
36
|
+
require_relative('client/load_source')
|
34
37
|
end
|
35
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtk-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reactor8
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dtk-common-core
|
@@ -98,28 +98,28 @@ dependencies:
|
|
98
98
|
name: mime-types
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 2.99.3
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 2.99.3
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: dtk-dsl
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 1.0.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 1.0.0
|
125
125
|
description: Command line tool to interact with a DTK Server and DTK Service Catalog.
|
@@ -129,8 +129,10 @@ executables:
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
-
- .gitignore
|
132
|
+
- ".gitignore"
|
133
|
+
- ".license_header"
|
133
134
|
- Gemfile
|
135
|
+
- LICENSE
|
134
136
|
- README.md
|
135
137
|
- Rakefile
|
136
138
|
- bin/dtk
|
@@ -145,14 +147,25 @@ files:
|
|
145
147
|
- features/step_definitions/dtk_steps.rb
|
146
148
|
- features/support/env.rb
|
147
149
|
- lib/cli/command.rb
|
150
|
+
- lib/cli/command/account.rb
|
151
|
+
- lib/cli/command/account/add_ssh_key.rb
|
152
|
+
- lib/cli/command/account/delete_ssh_key.rb
|
153
|
+
- lib/cli/command/account/list_ssh_keys.rb
|
154
|
+
- lib/cli/command/account/register_catalog_user.rb
|
155
|
+
- lib/cli/command/account/set_catalog_credentials.rb
|
156
|
+
- lib/cli/command/account/set_password.rb
|
148
157
|
- lib/cli/command/mixin.rb
|
149
158
|
- lib/cli/command/module.rb
|
150
159
|
- lib/cli/command/module/clone.rb
|
160
|
+
- lib/cli/command/module/delete_from_remote.rb
|
151
161
|
- lib/cli/command/module/install.rb
|
152
162
|
- lib/cli/command/module/list.rb
|
153
163
|
- lib/cli/command/module/list_assemblies.rb
|
154
164
|
- lib/cli/command/module/list_remotes.rb
|
165
|
+
- lib/cli/command/module/publish.rb
|
166
|
+
- lib/cli/command/module/pull_dtkn.rb
|
155
167
|
- lib/cli/command/module/push.rb
|
168
|
+
- lib/cli/command/module/push_dtkn.rb
|
156
169
|
- lib/cli/command/module/stage.rb
|
157
170
|
- lib/cli/command/module/uninstall.rb
|
158
171
|
- lib/cli/command/options.rb
|
@@ -171,7 +184,7 @@ files:
|
|
171
184
|
- lib/cli/command/service/list_attributes.rb
|
172
185
|
- lib/cli/command/service/list_component_links.rb
|
173
186
|
- lib/cli/command/service/list_components.rb
|
174
|
-
- lib/cli/command/service/
|
187
|
+
- lib/cli/command/service/list_dependencies.rb
|
175
188
|
- lib/cli/command/service/list_nodes.rb
|
176
189
|
- lib/cli/command/service/list_violations.rb
|
177
190
|
- lib/cli/command/service/pull.rb
|
@@ -195,6 +208,7 @@ files:
|
|
195
208
|
- lib/cli/context.rb
|
196
209
|
- lib/cli/context/attributes.rb
|
197
210
|
- lib/cli/context/type.rb
|
211
|
+
- lib/cli/context/type/account.rb
|
198
212
|
- lib/cli/context/type/module.rb
|
199
213
|
- lib/cli/context/type/service.rb
|
200
214
|
- lib/cli/context/type/top.rb
|
@@ -211,27 +225,53 @@ files:
|
|
211
225
|
- lib/client/config/default.conf
|
212
226
|
- lib/client/configurator.rb
|
213
227
|
- lib/client/conn.rb
|
214
|
-
- lib/client/content_generator.rb
|
215
228
|
- lib/client/error.rb
|
216
229
|
- lib/client/error/subclasses.rb
|
217
230
|
- lib/client/git_repo.rb
|
218
231
|
- lib/client/git_repo/adapter/git_gem.rb
|
219
232
|
- lib/client/git_repo/adapter/git_gem/error_handler.rb
|
233
|
+
- lib/client/load_source.rb
|
234
|
+
- lib/client/load_source/component_info.rb
|
235
|
+
- lib/client/load_source/service_info.rb
|
220
236
|
- lib/client/logger.rb
|
237
|
+
- lib/client/module_ref.rb
|
221
238
|
- lib/client/operation.rb
|
222
239
|
- lib/client/operation/account.rb
|
240
|
+
- lib/client/operation/account/add_ssh_key.rb
|
241
|
+
- lib/client/operation/account/delete_ssh_key.rb
|
242
|
+
- lib/client/operation/account/list_ssh_keys.rb
|
243
|
+
- lib/client/operation/account/register_catalog_user.rb
|
244
|
+
- lib/client/operation/account/set_catalog_credentials.rb
|
245
|
+
- lib/client/operation/account/set_password.rb
|
223
246
|
- lib/client/operation/client_module_dir.rb
|
224
247
|
- lib/client/operation/client_module_dir/git_repo.rb
|
248
|
+
- lib/client/operation/client_module_dir/git_repo/internal.rb
|
249
|
+
- lib/client/operation/client_module_dir/git_repo/internal/dtkn.rb
|
225
250
|
- lib/client/operation/module.rb
|
226
251
|
- lib/client/operation/module/clone_module.rb
|
252
|
+
- lib/client/operation/module/delete_from_remote.rb
|
227
253
|
- lib/client/operation/module/install.rb
|
228
254
|
- lib/client/operation/module/install/common_module.rb
|
229
|
-
- lib/client/operation/module/install/
|
255
|
+
- lib/client/operation/module/install/dependent_modules.rb
|
256
|
+
- lib/client/operation/module/install/dependent_modules/component_dependency_tree.rb
|
257
|
+
- lib/client/operation/module/install/dependent_modules/component_dependency_tree/cache.rb
|
258
|
+
- lib/client/operation/module/install/dependent_modules/component_dependency_tree/resolve_modules.rb
|
259
|
+
- lib/client/operation/module/install/dependent_modules/component_module.rb
|
260
|
+
- lib/client/operation/module/install/dependent_modules/prompt_helper.rb
|
261
|
+
- lib/client/operation/module/install/mixin.rb
|
262
|
+
- lib/client/operation/module/install/module_ref.rb
|
263
|
+
- lib/client/operation/module/install/print_helper.rb
|
230
264
|
- lib/client/operation/module/install_from_catalog.rb
|
231
265
|
- lib/client/operation/module/list.rb
|
232
266
|
- lib/client/operation/module/list_assemblies.rb
|
233
267
|
- lib/client/operation/module/list_remotes.rb
|
268
|
+
- lib/client/operation/module/publish.rb
|
269
|
+
- lib/client/operation/module/pull_dtkn.rb
|
234
270
|
- lib/client/operation/module/push.rb
|
271
|
+
- lib/client/operation/module/push_dtkn.rb
|
272
|
+
- lib/client/operation/module/push_dtkn/convert_source.rb
|
273
|
+
- lib/client/operation/module/push_dtkn/convert_source/component_info.rb
|
274
|
+
- lib/client/operation/module/push_dtkn/convert_source/service_info.rb
|
235
275
|
- lib/client/operation/module/stage.rb
|
236
276
|
- lib/client/operation/module/uninstall.rb
|
237
277
|
- lib/client/operation/module_service_common.rb
|
@@ -250,7 +290,7 @@ files:
|
|
250
290
|
- lib/client/operation/service/list_attributes.rb
|
251
291
|
- lib/client/operation/service/list_component_links.rb
|
252
292
|
- lib/client/operation/service/list_components.rb
|
253
|
-
- lib/client/operation/service/
|
293
|
+
- lib/client/operation/service/list_dependencies.rb
|
254
294
|
- lib/client/operation/service/list_nodes.rb
|
255
295
|
- lib/client/operation/service/list_violations.rb
|
256
296
|
- lib/client/operation/service/pull.rb
|
@@ -292,6 +332,15 @@ files:
|
|
292
332
|
- lib/client/response/error_handler.rb
|
293
333
|
- lib/client/response/render_helper.rb
|
294
334
|
- lib/client/response/subclasses.rb
|
335
|
+
- lib/client/service_and_component_info.rb
|
336
|
+
- lib/client/service_and_component_info/transform_from.rb
|
337
|
+
- lib/client/service_and_component_info/transform_from/info.rb
|
338
|
+
- lib/client/service_and_component_info/transform_from/info/component.rb
|
339
|
+
- lib/client/service_and_component_info/transform_from/info/service.rb
|
340
|
+
- lib/client/service_and_component_info/transform_to.rb
|
341
|
+
- lib/client/service_and_component_info/transform_to/info.rb
|
342
|
+
- lib/client/service_and_component_info/transform_to/info/component.rb
|
343
|
+
- lib/client/service_and_component_info/transform_to/info/service.rb
|
295
344
|
- lib/client/session.rb
|
296
345
|
- lib/client/util.rb
|
297
346
|
- lib/client/util/auxiliary.rb
|
@@ -300,7 +349,6 @@ files:
|
|
300
349
|
- lib/client/util/dtk_path.rb
|
301
350
|
- lib/client/util/hash_with_optional_keys.rb
|
302
351
|
- lib/client/util/interactive_wizard.rb
|
303
|
-
- lib/client/util/module_ref.rb
|
304
352
|
- lib/client/util/os_util.rb
|
305
353
|
- lib/client/util/os_util/print.rb
|
306
354
|
- lib/client/util/post_body.rb
|
@@ -322,17 +370,17 @@ require_paths:
|
|
322
370
|
- lib
|
323
371
|
required_ruby_version: !ruby/object:Gem::Requirement
|
324
372
|
requirements:
|
325
|
-
- -
|
373
|
+
- - ">="
|
326
374
|
- !ruby/object:Gem::Version
|
327
375
|
version: 1.9.3
|
328
376
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
377
|
requirements:
|
330
|
-
- -
|
378
|
+
- - ">="
|
331
379
|
- !ruby/object:Gem::Version
|
332
380
|
version: '0'
|
333
381
|
requirements: []
|
334
382
|
rubyforge_project:
|
335
|
-
rubygems_version: 2.
|
383
|
+
rubygems_version: 2.4.6
|
336
384
|
signing_key:
|
337
385
|
specification_version: 4
|
338
386
|
summary: DTK CLI client for DTK server interaction.
|