dust-deploy 0.13.5 → 0.13.6

Sign up to get free protection for your applications and to get access to all the features.
data/bin/dust CHANGED
@@ -84,7 +84,7 @@ module Dust
84
84
  @nodes.each_with_index do |node, i|
85
85
  if $parallel
86
86
  threads[i] = Thread.new do
87
- Thread.current['hostname'] = node['hostname'] if run_recipes node, 'deploy'
87
+ Thread.current['hostname'] = node['hostname'] if run_recipes node, 'status'
88
88
  end
89
89
  else
90
90
  run_recipes node, 'status'
data/changelog.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.13.6
5
+ ------------
6
+
7
+ - fixes bug with dust status --parallel
8
+
9
+
4
10
  0.13.5
5
11
  ------------
6
12
 
@@ -1,12 +1,15 @@
1
1
  class CupsClient < Recipe
2
2
  desc 'cups_client:deploy', 'maintains /etc/cups/client.conf'
3
3
  def deploy
4
- return false unless install
5
-
6
4
  return @node.messages.add('no printserver specified.').failed unless @config
7
-
8
- @node.messages.add("setting servername to: #{@config}").ok
9
- @node.write '/etc/cups/client.conf', "ServerName #{@config}\n"
5
+
6
+ if @config == 'remove'
7
+ @node.rm('/etc/cups/client.conf')
8
+ else
9
+ return false unless install
10
+ @node.messages.add("setting servername to: #{@config}").ok
11
+ @node.write '/etc/cups/client.conf', "ServerName #{@config}\n"
12
+ end
10
13
  end
11
14
 
12
15
  desc 'cups_client:status', 'shows current /etc/cups/client.conf'
@@ -5,7 +5,7 @@ class EtcHosts < Recipe
5
5
 
6
6
  # restart dns service
7
7
  if @options.restart? and @config.is_a? String
8
- @node.package_installed? @config
8
+ @node.install_package @config
9
9
  @node.restart_service @config
10
10
  end
11
11
  end
@@ -30,7 +30,7 @@ class ResolvConf < Recipe
30
30
  msg.ok
31
31
  end
32
32
 
33
- @config['nameservers'].each do |nameserver|
33
+ @config['nameservers'].to_array.each do |nameserver|
34
34
  msg = @node.messages.add("adding nameserver #{nameserver}", :indent => 2)
35
35
  config_file << "nameserver #{nameserver}\n"
36
36
  msg.ok
data/lib/dust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.13.5"
2
+ VERSION = "0.13.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dust-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.5
4
+ version: 0.13.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json