dtk-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3981a13565726d82ae34679577877df68accfcab
4
- data.tar.gz: 4dc01e0e0f1dce4285d4a8dc6faa445d1df0f66c
3
+ metadata.gz: 3953dc0df5e344c64f43464dd5e730198c4a484f
4
+ data.tar.gz: adbd2402ddbacff57acde0e95ec69cb9f33f76da
5
5
  SHA512:
6
- metadata.gz: f0a443fccb5533b633aeee895ead2c43c05292a2eaebf4936fc688ee2cb50a5e2b25a0a8b61199321cd29f12269f2959984bbc7ab1c86d4da6f4e4d04c95e418
7
- data.tar.gz: 706bcf1c39b99602dc3409ebfb7cc0614dce6ebc693c95dd73f52ae6922d7e0f45d15fd1fc645a2dfc3e2d4cb7a6af8db44d810c16304b790b7c36a11d039d2c
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
- sc.flag Token.directory_path, :desc => 'Absolute or relative path to directory containing content to install'
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
@@ -18,7 +18,7 @@
18
18
  module DTK
19
19
  module Client
20
20
  module CLI
21
- VERSION="0.11.2"
21
+ VERSION="0.11.3"
22
22
  end
23
23
  end
24
24
  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::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.2
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-07-31 00:00:00.000000000 Z
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