chamber 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/chamber +12 -0
- data/lib/chamber/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e991dd80673beb3645505e5b5571cf8c6529edc
|
4
|
+
data.tar.gz: eb74b4013f2bec9a18957ef9c527ee11954e10d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b6cd7b23ebd25a196e304de3106fb1679c30c0b01c19a9fedccddfe83ee6340198ec1f21526f5a741d5ef3fbec9d440035845a2edf6d3feb43e2e557a39597a
|
7
|
+
data.tar.gz: d39a4b31520431a209bacf8e11973b12981d5a24067f34d14a19bff860ac8e720825cda04762241e4dc82e4b566c834c6ee129c020da27bced522bd83dcb59bb
|
data/bin/chamber
CHANGED
@@ -85,9 +85,21 @@ module Commands
|
|
85
85
|
end
|
86
86
|
|
87
87
|
desc 'diff', 'Displays the difference between what is currently stored in the Heroku application\'s config and what Chamber knows about locally'
|
88
|
+
method_option :only_ignored,
|
89
|
+
type: :boolean,
|
90
|
+
aliases: '-o',
|
91
|
+
default: true,
|
92
|
+
desc: 'When enabled, the diff will only consider settings contained in files which have been gitignored, the rest will be accessed directly'
|
88
93
|
def diff
|
89
94
|
::Chamber::Commands::Chamber.init(options)
|
90
95
|
|
96
|
+
if options[:only_ignored]
|
97
|
+
ignored_settings_files = `git ls-files --other --ignored --exclude-from=.gitignore | sed -e "s|^|${PWD}/|" | grep --colour=never -E '#{::Chamber.filenames.join('|')}'`
|
98
|
+
|
99
|
+
::Chamber.load files: ignored_settings_files.split("\n"),
|
100
|
+
namespaces: options[:namespaces]
|
101
|
+
end
|
102
|
+
|
91
103
|
current_heroku_config = heroku("config --shell")
|
92
104
|
current_local_config = ::Chamber.to_s(pair_separator: "\n",
|
93
105
|
value_surrounder: '')
|
data/lib/chamber/version.rb
CHANGED