dtk-client 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cli/command/module/install.rb +8 -4
- data/lib/cli/version.rb +1 -1
- data/lib/dtk_puppet/parse_structure.rb +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3953dc0df5e344c64f43464dd5e730198c4a484f
|
|
4
|
+
data.tar.gz: adbd2402ddbacff57acde0e95ec69cb9f33f76da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0759ad3202f4b49e699ba368d0a6378e15499498e50b3b2aeafd85f8e79ced559dcd0e366b3dd480729caad364e9d552e3da3c97ac411aa3eff5a7f949349fab
|
|
7
|
+
data.tar.gz: 6b6955127a3e4413ba4e50b2dbf64ee66aa333669d3ea7d6a34de1314533131be399f63f6cf507135f2a07c00a08b6c8ef327eb07ba574137b630758ccf4213a
|
|
@@ -19,18 +19,22 @@ module DTK::Client
|
|
|
19
19
|
module CLI::Command
|
|
20
20
|
module Module
|
|
21
21
|
subcommand_def 'install' do |c|
|
|
22
|
-
c.arg Token::Arg.module_name, :optional => true
|
|
22
|
+
c.arg Token::Arg.module_name, :optional => true
|
|
23
|
+
c.arg Token::Arg.target_directory, :optional => true
|
|
23
24
|
command_body c, :install, 'Install a module on the server from a client directory or from the DTK remote catalog (DTKN)' do |sc|
|
|
24
25
|
sc.flag Token.version
|
|
25
|
-
|
|
26
|
+
# Add '-d' flag if development mode is active
|
|
27
|
+
if Config[:development_mode]
|
|
28
|
+
sc.flag Token.directory_path, :desc => 'Absolute or relative path to directory containing content to install'
|
|
29
|
+
end
|
|
26
30
|
sc.switch Token.update_deps
|
|
27
31
|
|
|
28
32
|
sc.action do |_global_options, options, args|
|
|
29
|
-
directory_path = options[:directory_path]
|
|
33
|
+
directory_path = args[1] || options[:directory_path]
|
|
30
34
|
version = options[:version]
|
|
31
35
|
update_deps = options[:update_deps]
|
|
32
36
|
has_remote_repo = false
|
|
33
|
-
|
|
37
|
+
|
|
34
38
|
if module_name = args[0]
|
|
35
39
|
# reached if installing from dtkn
|
|
36
40
|
# installs content from dtkn (later probably from other remote catalogs) onto client machine
|
data/lib/cli/version.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::Puppet
|
|
2
19
|
class ParseStructure < Hash
|
|
3
20
|
def initialize(ast_item = nil, _opts = {})
|
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.11.
|
|
4
|
+
version: 0.11.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reactor8
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dtk-common-core
|