dust-deploy 0.13.1 → 0.13.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.
data/bin/dust CHANGED
@@ -188,6 +188,11 @@ module Dust
188
188
  Dust.print_ok
189
189
  end
190
190
 
191
+ desc 'version', 'displays version number'
192
+ def version
193
+ puts "dust-deploy-#{Dust::VERSION}, running on ruby-#{RUBY_VERSION}"
194
+ end
195
+
191
196
 
192
197
  private
193
198
 
@@ -217,7 +222,7 @@ module Dust
217
222
  return if recipes.empty?
218
223
 
219
224
  # connect to server
220
- node['server'] = Server.new node
225
+ node['server'] = Server.new(node)
221
226
  return unless node['server'].connect
222
227
 
223
228
  # runs the method with the recipe name, defined and included in recipe/*.rb
data/changelog.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.13.2
5
+ ------------
6
+
7
+ - does not overwrite already present node variables (like hostname) when using facter anymore
8
+ - adds "dust version"
9
+
10
+
4
11
  0.13.1
5
12
  ------------
6
13
 
@@ -29,13 +36,13 @@ Changelog
29
36
 
30
37
  ::Dust.print_ok('this went well')
31
38
 
32
- @node.message.add('this went well').ok
39
+ @node.messages.add('this went well').ok
33
40
 
34
41
 
35
42
  ::Dust.print_message('executing something')
36
43
  ::Dust.print_result(ret)
37
44
 
38
- msg = @node.message.add('executing something')
45
+ msg = @node.messages.add('executing something')
39
46
  msg.parse_result(ret)
40
47
 
41
48
 
data/lib/dust.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'dust/version'
1
2
  require 'dust/helper'
2
3
  require 'dust/print_status'
3
4
  require 'dust/messaging'
@@ -14,7 +14,7 @@ class Locale < Recipe
14
14
  @node.write '/etc/sysconfig/i18n', "LANG=\"#{@config}\"\nLC_ALL=\"#{@config}\"\nSYSFONT=\"latarcyrheb-sun16\"\n", :quiet => true
15
15
  msg.ok
16
16
  else
17
- @node.message.add('os not supported').failed
17
+ @node.messages.add('os not supported').failed
18
18
  end
19
19
  end
20
20
 
data/lib/dust/server.rb CHANGED
@@ -696,7 +696,7 @@ module Dust
696
696
 
697
697
  # run facter with -y for yaml output, and merge results into @node
698
698
  ret = exec 'facter -y'
699
- @node.merge! YAML.load ret[:stdout]
699
+ @node = YAML.load(ret[:stdout]).merge(@node)
700
700
 
701
701
  msg.parse_result(ret[:exit_code])
702
702
  end
data/lib/dust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.13.1"
2
+ VERSION = "0.13.2"
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.1
4
+ version: 0.13.2
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-05-24 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json