itamae 1.10.10 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a27b553f519a4e36fdc40534d8033528f3dfbbca42133fed38c8af9bafc0234c
4
- data.tar.gz: d3b9da92d9ebaa0c4f3ceff9f483944e1fa02d2a28741c921c3b16f283b083cf
3
+ metadata.gz: 60e0d5a72bca0a9bd055076d31e684d5b48ab4501e4db982c83e345136c11ea3
4
+ data.tar.gz: fdd2265af59a12b74634623315b38977344c91ae3c995e76ee4e881743d5d8d4
5
5
  SHA512:
6
- metadata.gz: 5cf3758a3778d8a22128d08263f03bbf10c2ea53246128013786bda0c44549a14b89792798db43e5de573264fe06a5c3e8049cf52837db46d086e84f528c10c6
7
- data.tar.gz: 86f33c85a7deed7cb93993abe8e811e0dd6e84861350ac48f7fae462a6fdca9e3c9b9a1c6ccf8438af326fc77829a5f0eb1d4e848aed6efe36d29739393467f3
6
+ metadata.gz: 7c2bf49d1ffb3af4b9a83a227c0f1e33565d7b607925f5dcc3513aeff573ae4ee44b91bbe140392d7c5b866f1a05d49926db8656fe5f36e988cab4872f1495f2
7
+ data.tar.gz: 4ad43aee6fe41d79bf872b42a04d150042163b81e231644c69a73c33de71780d51a26335c98e6d4060e97c798c0259fd839dddf4033a5ad5f88bee2f708fe57d
@@ -1,5 +1,12 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.10.10...master)
2
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.11.0...master)
3
+
4
+ ## v1.11.0
5
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.11.0...master)
6
+
7
+ Improvements
8
+
9
+ - [file: add support for sensitive files (by @terceiro)](https://github.com/itamae-kitchen/itamae/pull/325)
3
10
 
4
11
  ## v1.10.10
5
12
  [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.10.9...v1.10.10)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # [![](https://raw.githubusercontent.com/itamae-kitchen/itamae-logos/master/small/FA-Itamae-horizontal-01-180x72.png)](https://github.com/itamae-kitchen/itamae)
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/itamae.svg)](http://badge.fury.io/rb/itamae) [![Code Climate](https://codeclimate.com/github/ryotarai/itamae/badges/gpa.svg)](https://codeclimate.com/github/ryotarai/itamae) [![Build Status](https://travis-ci.org/itamae-kitchen/itamae.svg?branch=master)](https://travis-ci.org/itamae-kitchen/itamae) [![Slack](https://img.shields.io/badge/slack-join-blue.svg)](https://join.slack.com/t/itamae/shared_invite/enQtNTExNTI3ODM1NTY5LTM5MWJlZTgwODE0YTUwMThiNzZjN2I1MGNlZjE2NjlmNzg5NTNlOTliMDhkNDNmNTQ2ZTgwMzZjNjI5NDJiZGI)
3
+ [![Gem Version](https://badge.fury.io/rb/itamae.svg)](http://badge.fury.io/rb/itamae) [![Code Climate](https://codeclimate.com/github/ryotarai/itamae/badges/gpa.svg)](https://codeclimate.com/github/ryotarai/itamae) [![Build Status](https://travis-ci.com/itamae-kitchen/itamae.svg?branch=master)](https://travis-ci.com/itamae-kitchen/itamae) [![Slack](https://img.shields.io/badge/slack-join-blue.svg)](https://join.slack.com/t/itamae/shared_invite/enQtNTExNTI3ODM1NTY5LTM5MWJlZTgwODE0YTUwMThiNzZjN2I1MGNlZjE2NjlmNzg5NTNlOTliMDhkNDNmNTQ2ZTgwMzZjNjI5NDJiZGI)
4
4
 
5
5
  Simple and lightweight configuration management tool inspired by Chef.
6
6
 
@@ -97,4 +97,3 @@ If you have a problem, please [create an issue](https://github.com/itamae-kitche
97
97
  3. Commit your changes (`git commit -am 'Add some feature'`)
98
98
  4. Push to the branch (`git push origin my-new-feature`)
99
99
  5. Create new Pull Request
100
-
@@ -1,6 +1,7 @@
1
1
  require 'hashie'
2
2
  require 'json'
3
3
  require 'schash'
4
+ require 'itamae/mash'
4
5
 
5
6
  module Itamae
6
7
  class Node
@@ -4,6 +4,7 @@ module Itamae
4
4
  define_attribute :action, default: :create
5
5
  define_attribute :path, type: String, default_name: true
6
6
  define_attribute :content, type: String, default: nil
7
+ define_attribute :sensitive, default: false
7
8
  define_attribute :mode, type: String
8
9
  define_attribute :owner, type: String
9
10
  define_attribute :group, type: String
@@ -156,6 +157,11 @@ module Itamae
156
157
  end
157
158
 
158
159
  def show_content_diff
160
+ if attributes.sensitive
161
+ Itamae.logger.info("diff exists, but not displaying sensitive content")
162
+ return
163
+ end
164
+
159
165
  if attributes.modified
160
166
  Itamae.logger.info "diff:"
161
167
  diff = run_command(["diff", "-u", compare_to, @temppath], error: false)
@@ -1,3 +1,3 @@
1
1
  module Itamae
2
- VERSION = "1.10.10"
2
+ VERSION = "1.11.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.10
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-07 00:00:00.000000000 Z
13
+ date: 2020-12-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  requirements: []
332
- rubygems_version: 3.0.3
332
+ rubygems_version: 3.1.2
333
333
  signing_key:
334
334
  specification_version: 4
335
335
  summary: Simple Configuration Management Tool