rundock 0.4.1 → 0.4.2

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: 05ba3a74750250919fe7009e3dfefdf4a32743be
4
- data.tar.gz: 71d1003b4666e719c4df8c46da6adcbf435c32c2
3
+ metadata.gz: 8f0a7db1bce3db22fcb4588d7a526111a714ecc9
4
+ data.tar.gz: 7e17dd884cf1423319bb4a393e5c5bd77a9f74db
5
5
  SHA512:
6
- metadata.gz: 144dd2b9d179d222884903aa71da56ce2bf4e822bc99cf78adcff32e747691234e31be51764dba67f1cf3a2cac27a594ec0882ac243d121db2cd7925c63ce0e9
7
- data.tar.gz: 7253c3a3e41485c1bae32ef0497f7b0585f49f3bb616f4087659e37d0c5a7becd0282baa2a8952eec788dd680d66e0bef691582041de446c736952feaa503bd6
6
+ metadata.gz: 1ba0a3049b43e9ca6819aff8d27f5eec93e8b10848069592ba4cdbc085b0e228ceb38d860aef0b44b40beef69239bced2830b6de1fd8d211fba3d65f9c974dae
7
+ data.tar.gz: 6e835321e6c7b5a3fd332aaeaf215f52f2b4e38ee5a39ee0c189853dcf1a2c921ec03f4e551f8bc09b9f634b6de7d50bf1e8cf592838c47f2cd53d50b8f33726
@@ -1,7 +1,6 @@
1
1
  module Rundock
2
2
  module Attribute
3
3
  class NodeAttribute < Base
4
- attr_accessor :node
5
4
  attr_accessor :nodename
6
5
  attr_accessor :nodeinfo
7
6
  attr_accessor :task_info
@@ -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] = @nodename
56
+ opts[:host] = opts[:nodename] = @nodename
57
57
  opts
58
58
  end
59
59
 
@@ -32,7 +32,7 @@ module Rundock
32
32
  YAML.load_documents(f) do |y|
33
33
  y.each do |k, v|
34
34
  raise HookStructureError if !v.is_a?(Hash) || !v.key?('hook_type')
35
- next if !allow_all && enables.include?(k)
35
+ next if !allow_all && !enables.include?(k)
36
36
  hook = Rundock::HookFactory.instance(v['hook_type']).create(k, v.deep_symbolize_keys)
37
37
  hooks << hook
38
38
  end
@@ -77,7 +77,7 @@ module Rundock
77
77
  next if g !~ /^(rundock-plugin-#{plugin})-/
78
78
  next if Gem::Specification.find_by_name(g).nil?
79
79
  Logger.debug("Loading rundock plugin: #{g}")
80
- libdir = "#{Gem::Specification.find_by_name(g).full_gem_path}/lib/#{Regexp.last_match(1).gsub(/-/, '/')}"
80
+ libdir = "#{Gem::Specification.find_by_name(g).full_gem_path}/lib/#{Regexp.last_match(1).tr('-', '/')}"
81
81
  Dir.glob("#{libdir}/*.rb").each do |f|
82
82
  require f.gsub(/.rb$/, '')
83
83
  end
@@ -1,3 +1,3 @@
1
1
  module Rundock
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
data/rundock.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['hiracy']
10
10
  spec.email = ['leizhen@mbr.nifty.com']
11
11
 
12
- spec.summary = 'Simple and extensible server operation framework'
12
+ spec.summary = 'Simple and extensible server orchestration framework'
13
13
  spec.homepage = 'https://github.com/hiracy/rundock'
14
14
  spec.license = 'MIT'
15
15
 
@@ -2,4 +2,4 @@
2
2
  command:
3
3
  - "rm -f /var/tmp/hello_rundock_from_file_hook_all_1_scenario"
4
4
  - "rm -f /var/tmp/hello_rundock_from_file_hook_all_2_scenario"
5
- hook: file_all
5
+ hook: all
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - hiracy
@@ -228,5 +228,5 @@ rubyforge_project:
228
228
  rubygems_version: 2.4.5
229
229
  signing_key:
230
230
  specification_version: 4
231
- summary: Simple and extensible server operation framework
231
+ summary: Simple and extensible server orchestration framework
232
232
  test_files: []