confctl 2.2.2 → 2.2.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145a3b775c32414d32bf6dba2e9dbf69db302f1893f92f78cd5c5dc3f7bdca4a
|
4
|
+
data.tar.gz: fb1357049bec71e36b4d6fc9e76d0bf0ac8e620f10e7a3ebed8056ba8d6fc848
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30fa519e81a6bc96de302e573cfdef8d4aef4a5f0ce918778e94132c7cc6de661c26d3206c9223b4b9e1dbd295c4d4a902100504d0563f8ba64e015db022c952
|
7
|
+
data.tar.gz: 1158a757fea8cd633edc95b976e6db9ec65797fa1623f3cb20912b870dc0b6180bbdc37e5e7d788c8ddb5505d819a8322ff4d7f4e72e3f9b2fd50fe250a3486b
|
data/CHANGELOG.md
CHANGED
@@ -55,7 +55,7 @@ module ConfCtl
|
|
55
55
|
git_commit = [
|
56
56
|
'git',
|
57
57
|
'commit',
|
58
|
-
editor ? '-e' : nil,
|
58
|
+
use_editor?(editor) ? '-e' : nil,
|
59
59
|
'-m', build_message(type, changelog),
|
60
60
|
*changed_files
|
61
61
|
].compact
|
@@ -154,5 +154,9 @@ module ConfCtl
|
|
154
154
|
|
155
155
|
true
|
156
156
|
end
|
157
|
+
|
158
|
+
def use_editor?(editor)
|
159
|
+
editor && $stdout.tty?
|
160
|
+
end
|
157
161
|
end
|
158
162
|
end
|
data/lib/confctl/version.rb
CHANGED
@@ -723,12 +723,9 @@ class Machine
|
|
723
723
|
@spin = @current.json.fetch('spin', spin)
|
724
724
|
@fqdn = @current.json.fetch('fqdn', name)
|
725
725
|
|
726
|
-
# rubocop:disable Naming/MemoizedInstanceVariableName
|
727
726
|
@label = @current.json.fetch('label', nil)
|
728
727
|
@label ||= @current.json.fetch('fqdn', nil)
|
729
728
|
@label ||= name
|
730
|
-
# rubocop:enable Naming/MemoizedInstanceVariableName
|
731
|
-
|
732
729
|
@short_label = @label.split('.')[0..1].join('.')
|
733
730
|
end
|
734
731
|
end
|