itamae 1.1.12 → 1.1.13

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: 661ba31a751a8489d3a477b8b625db1dd6881330
4
- data.tar.gz: 0499c2ed0099e259d819444be3b9d229d1d00678
3
+ metadata.gz: 7885bb553cf4e1a7b81f2d21a81b25f3f125ab49
4
+ data.tar.gz: af583071cae86da6fbc61bc470b9d3765647c766
5
5
  SHA512:
6
- metadata.gz: 0858008a836133796cb14bb9a642aecafd4b2bec9b24a2e0aa73e980c44cbdb07a04c6cbca764cda9bbaa776ddc51ce1e3f8550b564d2f6dc1e367c7bbec8ac2
7
- data.tar.gz: 727bcc68b845aa1db68f4e2d33f95534147c18b69dc14be6c9fc6ff7d02d40d7729e0110d4ed909ad41d225a7d38e89a438680f6e44f526d7dd7d8bb46fdb67b
6
+ metadata.gz: ffb26e3cce08fa25ac43b9bdf1702201213baec1809cf469db7cd1ebb14a0115fd5333cdfffc2bf2494e6b9c2580587e0e68ac4922740a354bb1c6702006d5c6
7
+ data.tar.gz: f815e3cdd65229d20dd0413992794b23ec0f6107b873aadf6dd4f1159a52ae8f68060725c5d3e942aebb9937e750a93e93e52ea1f35487782b466db292769d9e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v1.1.13
2
+
3
+ Improvements
4
+
5
+ - [Set executed attr of execute resource for logging purpose.](https://github.com/itamae-kitchen/itamae/pull/86)
6
+ - [Colorize diff output of file resource green.](https://github.com/itamae-kitchen/itamae/pull/87)
7
+
1
8
  ## v1.1.12
2
9
 
3
10
  Bugfixes
@@ -7,6 +7,17 @@ module Itamae
7
7
  define_attribute :command, type: String, default_name: true
8
8
  define_attribute :cwd, type: String
9
9
 
10
+ def pre_action
11
+ case @current_action
12
+ when :run
13
+ attributes.executed = true
14
+ end
15
+ end
16
+
17
+ def set_current_attributes
18
+ current.executed = false
19
+ end
20
+
10
21
  def action_run(options)
11
22
  run_command(attributes.command, cwd: attributes.cwd)
12
23
  updated!
@@ -60,9 +60,11 @@ module Itamae
60
60
  # no change
61
61
  Logger.debug "file content will not change"
62
62
  else
63
- Logger.info "diff:"
64
- diff.stdout.each_line do |line|
65
- Logger.info "#{line.strip}"
63
+ Logger.formatter.color :green do
64
+ Logger.info "diff:"
65
+ diff.stdout.each_line do |line|
66
+ Logger.info "#{line.strip}"
67
+ end
66
68
  end
67
69
  end
68
70
  end
@@ -1 +1 @@
1
- 1.1.12
1
+ 1.1.13
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-22 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  requirements: []
225
225
  rubyforge_project:
226
- rubygems_version: 2.4.5
226
+ rubygems_version: 2.2.2
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: Simple Configuration Management Tool