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 +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +1 -2
- data/lib/itamae/node.rb +1 -0
- data/lib/itamae/resource/file.rb +6 -0
- data/lib/itamae/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60e0d5a72bca0a9bd055076d31e684d5b48ab4501e4db982c83e345136c11ea3
|
4
|
+
data.tar.gz: fdd2265af59a12b74634623315b38977344c91ae3c995e76ee4e881743d5d8d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2bf49d1ffb3af4b9a83a227c0f1e33565d7b607925f5dcc3513aeff573ae4ee44b91bbe140392d7c5b866f1a05d49926db8656fe5f36e988cab4872f1495f2
|
7
|
+
data.tar.gz: 4ad43aee6fe41d79bf872b42a04d150042163b81e231644c69a73c33de71780d51a26335c98e6d4060e97c798c0259fd839dddf4033a5ad5f88bee2f708fe57d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.
|
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.
|
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
|
-
|
data/lib/itamae/node.rb
CHANGED
data/lib/itamae/resource/file.rb
CHANGED
@@ -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)
|
data/lib/itamae/version.rb
CHANGED
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.
|
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-
|
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.
|
332
|
+
rubygems_version: 3.1.2
|
333
333
|
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: Simple Configuration Management Tool
|