dtk-client 0.7.9 → 0.7.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjVkYjRmNjg4ZWIwNGZkNWQ1YzM1MjU0MTRmMmFjMDdiMjczNTQ4Ng==
4
+ ZDI3ZWM5ZTI4MWM1Njg2NDU4ZmUzYjgyNzQxZjljMDQwMzM4Yjc3Nw==
5
5
  data.tar.gz: !binary |-
6
- ZWE0NjRlNmNlZDNlMjMyZTU3YjUxMzkzNTM4NTVhYjUzYWNhMTQwNg==
6
+ NzcwNjY1YmQxNTFhNWNjMzM1Y2E5NDQ3ZTgxMDI2YjUwOWI5ZTI2Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjBmOGZiNzVhZGVhM2I2YTVhMjcxNGRjNmI0ZGJkNWU2ZDNlMGRmOTljZTBi
10
- NmUyMDM0OTVlMzc3NTJjYzQ2ODI0YmI0ZWVjNzg0ZGRjN2Y0OGY4YmRlNDIw
11
- MTFlZDVmODk4YTk1YWUwNWZmMmQzNDNlMmJkYjQ3MDVmNWIwYjM=
9
+ NDNiY2Y2ZWRhMjQ4MzdlZjQ4MjZkMTIzNWJkMzNkMTJjOTYyNGM5NjY1NTQ1
10
+ ZWQ1YjRhY2YzNzNhYTQ0MGM4OWZhNmIzZThhYTM0ODY4Njk4ZTBlZWY1MWIy
11
+ NjcyYzZlMjYxM2JlNzE2ZjQ2MjM3ZDNiZDg2ZTVjZmQzYTg1ODE=
12
12
  data.tar.gz: !binary |-
13
- NGI3Yzk1OTQwOTBhYzc1ZDU4NTQ2NzIzNDRiOTlmNzY2NzkxOTFmMzY4Y2Q3
14
- NWRhNDM2NDA4ZjViYzVkMzhmZTAwZjg0ODJkNjAyMzY2NzNlN2NiMDgzY2Nj
15
- NzQzNmEzODUwMDJhOTk1NDA4NGNmNjAwNmEzNTc2ZDM2NmVhMjY=
13
+ NmIwOTNkODgyMTllNmE0ODRkY2IyNmRhZDIyYTc0NDFiYmE1YzE5Nzc4YTY0
14
+ ZTY2ZGNkOWNmMGE3MmY5OGEwZTBlZWMzNzE0NTIxYjljYTAyM2U1N2QwYWI2
15
+ MzA4ZTFlMGI1MTRmYTQ0MzI1MGUwMTA3YTIwMWYwYzhjMzYwOTY=
@@ -22,7 +22,7 @@ module DTK::Client
22
22
  # clone base version first if not cloned already
23
23
  clone_base_aux(module_type, module_id, "#{module_namespace}:#{module_name}") if opts[:use_latest] && version
24
24
 
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)
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)
26
26
  # module_location = OsUtil.module_location(module_type, "#{module_namespace}:#{module_name}", version)
27
27
  # 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
28
 
@@ -122,6 +122,7 @@ module DTK::Client
122
122
  desc "list-ssh-keys", "Show list of key pairs that your account profile has saved"
123
123
  def list_ssh_keys(context_params)
124
124
  post_body = {:username => ::DTK::Client::Configurator.client_username }
125
+
125
126
  response = post rest_url("account/list_ssh_keys"), post_body
126
127
  response.render_table(:account_ssh_keys)
127
128
  end
@@ -38,6 +38,7 @@ module DTK::Client
38
38
  def self.extended_context()
39
39
  {
40
40
  :context => {
41
+ :add_component => "component_template"
41
42
  },
42
43
  :command => {
43
44
  :add_component => {
@@ -475,7 +475,7 @@ TODO: will put in dot release and will rename to 'extend'
475
475
  action_info_aux(context_params)
476
476
  end
477
477
 
478
- # desc "SERVICE-NAME/ID list-workflows", "List the workflows associated with the service.", :hide => true
478
+ # desc "SERVICE-NAME/ID list-workflows", "List the workflows associated with the service."
479
479
  # def list_workflows(context_params)
480
480
  # workflow_list_aux(context_params)
481
481
  # end
@@ -809,7 +809,6 @@ TODO: will put in dot release and will rename to 'extend'
809
809
  def stage(context_params)
810
810
  stage_aux(context_params)
811
811
  end
812
-
813
812
  end
814
813
  end
815
814
 
@@ -46,6 +46,8 @@ module DTK::Client
46
46
 
47
47
  def self.extended_context()
48
48
  {
49
+ :context => {
50
+ },
49
51
  :command => {
50
52
  :stage => {
51
53
  :endpoint => "service_module",
@@ -56,6 +58,7 @@ module DTK::Client
56
58
  }
57
59
  end
58
60
 
61
+
59
62
  def self.valid_children()
60
63
  [:assembly, :remotes]
61
64
  end
@@ -298,7 +301,7 @@ module DTK::Client
298
301
  # post rest_url("service_module/export"), post_body
299
302
  # end
300
303
 
301
- desc "SERVICE-MODULE-NAME/ID publish [[NAMESPACE/]REMOTE-SERVICE-MODULE-NAME] -v VERSION [--force]","Publish service module to remote repository"
304
+ desc "SERVICE-MODULE-NAME/ID publish [[NAMESPACE/]REMOTE-SERVICE-MODULE-NAME] -v VERSION [--force]","Publish service module to remote repository"
302
305
  version_method_option
303
306
  method_option :force, :type => :boolean, :default => false, :aliases => '-f'
304
307
  def publish(context_params)
@@ -493,10 +496,14 @@ module DTK::Client
493
496
  # 'assembly-create', 'install' etc.
494
497
  @@invalidate_map << :assembly
495
498
 
499
+ in_target = options["in-target"]
496
500
  fwd_options = context_params.get_forwarded_options()
497
501
  in_target = fwd_options[:in_target]||options["in-target"]
498
502
  instance_bindings = options["instance-bindings"]
499
503
  settings = parse_service_settings(options["settings"])
504
+ node_size = options.node_size
505
+ os_type = options.os_type
506
+ version = options.version
500
507
  node_size = fwd_options[:node_size]||options.node_size
501
508
  os_type = fwd_options[:os_type]||options.os_type
502
509
  version = fwd_options[:version]||options.version
@@ -216,7 +216,7 @@ module DTK::Client
216
216
  # converge_aux(context_params, opts)
217
217
  # end
218
218
 
219
- # TODO: DEPRECATE: keeping around for backward compatibiity but will be deprecating execute-workflow
219
+ # # TODO: DEPRECATE: keeping around for backward compatibiity but will be deprecating execute-workflow
220
220
  # desc "WORKSPACE-NAME/ID execute-workflow WORKFLOW-ACTION [WORKFLOW-PARAMS] [-m COMMIT-MSG]", "Execute workflow.", :hide => true
221
221
  # method_option "commit_msg",:aliases => "-m",
222
222
  # :type => :string,
@@ -561,11 +561,6 @@ module DTK::Client
561
561
  list_actions_aux(context_params)
562
562
  end
563
563
 
564
- # desc "WORKSPACE-NAME/ID list-workflows", "List the workflows associated with the workspace.", :hide => true
565
- # def list_workflows(context_params)
566
- # workflow_list_aux(context_params)
567
- # end
568
-
569
564
  desc "WORKSPACE-NAME/ID list-violations", "Finds violations in the workspace that will prevent a converge operation."
570
565
  def list_violations(context_params)
571
566
  list_violations_aux(context_params)
@@ -656,7 +651,6 @@ module DTK::Client
656
651
  def stage(context_params)
657
652
  stage_aux(context_params)
658
653
  end
659
-
660
654
  end
661
655
  end
662
656
 
@@ -1,3 +1,3 @@
1
1
  module DtkClient
2
- VERSION="0.7.9"
2
+ VERSION="0.7.10"
3
3
  end
data/lib/shell/context.rb CHANGED
@@ -825,11 +825,9 @@ module DTK
825
825
  id = entity_name.identifier
826
826
  opts[id_label] = id
827
827
 
828
- response_ruby_obj = DTK::Client::CommandBaseThor.get_cached_response(endpoint, url, opts)
829
- # response_ruby_obj = post rest_url(url), opts
828
+ response_ruby_obj = DTK::Client::CommandBaseThor.get_cached_response(endpoint.to_sym, url, opts)
830
829
  else
831
- response_ruby_obj = DTK::Client::CommandBaseThor.get_cached_response(endpoint, url, opts)
832
- # response_ruby_obj = post rest_url(url), opts
830
+ response_ruby_obj = DTK::Client::CommandBaseThor.get_cached_response(endpoint.to_sym, url, opts)
833
831
  end
834
832
 
835
833
  if response_ruby_obj && response_ruby_obj.ok?
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.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich PELAVIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-20 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types