rundock 0.4.11 → 0.4.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fb16148337d2df02dd98c9c568f73053ae4f0fe
4
- data.tar.gz: 7146e8b107b4735c73b547e6627447bb71328ae2
3
+ metadata.gz: 6378718efb1db70de8299affa8a247584599d959
4
+ data.tar.gz: 5ef90fdec9c287e34094d69a5482c04fb8f4f5eb
5
5
  SHA512:
6
- metadata.gz: d03e7b40cf4896e5ce763dd9ea1a46e0e4a560f33fb95f3d76f847fb3fd48c0aa89617fd1062d7ce3f67f5664df2f41d1cae53ad80f7f93416777f682bf1553c
7
- data.tar.gz: 4b40aa2cde7aaa29c94bc8730e05ab537cc71bc5e4d18696bfe6b8c171c39228cf0e7fec4ea62894a73a1a570103a9da524cb02cd27eba3d6172b3b96d247b2d
6
+ metadata.gz: 638692c6748485e004a58c83535315d0bbf66e524e6dd21838606edfff9cabff519a4e52fa90f099c1cb87e33a0cfce9b5c3547a43aaaf3e2b8786b194dc8f61
7
+ data.tar.gz: 809bd4ebf09d51150c1929cccbb6cc73e564c69022b246832ac58f40541b9987299af2dd3246372d677c20d8946214e197c16e7f0f3b61eeba64574b7857e59e
@@ -53,7 +53,7 @@ module Rundock
53
53
  # replace cli ssh options if exists
54
54
  %w(:user :key :port :ssh_config :ask_password :sudo).each { |o| @node_info[@nodename.to_sym][:ssh_opts][o] = @options[o] if @options[o] }
55
55
 
56
- opts[:host] = opts[:nodename] = @nodename
56
+ opts[:host] = @nodename
57
57
  opts
58
58
  end
59
59
 
@@ -80,7 +80,9 @@ module Rundock
80
80
  private
81
81
 
82
82
  def build_cli_command_operation(command, node_attributes, cli_options)
83
+ node_attributes.nodename = @options[:host]
83
84
  node_attributes.errexit = !cli_options[:run_anyway]
85
+ node_attributes.dry_run = cli_options[:dry_run] ? true : false
84
86
  Rundock::OperationFactory.instance(:command).create(Array(command), node_attributes.list)
85
87
  end
86
88
 
@@ -1,3 +1,3 @@
1
1
  module Rundock
2
- VERSION = '0.4.11'
2
+ VERSION = '0.4.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rundock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - hiracy