dpl 1.8.40.travis.2194.5 → 1.8.40.travis.2195.5
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 +4 -4
- data/README.md +2 -1
- data/lib/dpl/provider/firebase.rb +1 -0
- data/spec/provider/firebase_spec.rb +6 -0
- 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: 86485cc78278edda21ddc764d8376e380780281d
|
|
4
|
+
data.tar.gz: 1681c2999a5a341f2ec925e1a1b1e762f75ba65c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebe4b77a4810312b217ada1179e873e157b39b0bb2c845dedf75a421430c21cb9e59e5f786b11664b542d138c3f7cd331e672c56e5b12e50f0332fff495aaaf5
|
|
7
|
+
data.tar.gz: 5d6d51d05837f3bab7578cf6775203ed0da46bc589c26429198febe2173074a79cb9383f0579622c74e4184dcf536546993fd906ecd980ccd63c59cfee492591
|
data/README.md
CHANGED
|
@@ -881,10 +881,11 @@ In order to use this provider, please make sure you have the [App Engine Admin A
|
|
|
881
881
|
|
|
882
882
|
* **token**: Your Firebase CI access token (generate with `firebase login:ci`)
|
|
883
883
|
* **project**: Deploy to a different Firebase project than specified in your `firebase.json` (e.g. `myapp-staging`)
|
|
884
|
+
* **message**: Optional. The message describing this deploy.
|
|
884
885
|
|
|
885
886
|
#### Examples:
|
|
886
887
|
|
|
887
|
-
dpl --provider=firebase --token=<token> --project=<project>
|
|
888
|
+
dpl --provider=firebase --token=<token> --project=<project> --message=<message>
|
|
888
889
|
|
|
889
890
|
|
|
890
891
|
|
|
@@ -18,6 +18,7 @@ module DPL
|
|
|
18
18
|
def push_app
|
|
19
19
|
command = "firebase deploy --non-interactive"
|
|
20
20
|
command << " --project #{options[:project]}" if options[:project]
|
|
21
|
+
command << " --message '#{options[:message]}'" if options[:message]
|
|
21
22
|
command << " --token '#{options[:token]}'" if options[:token]
|
|
22
23
|
context.shell command
|
|
23
24
|
end
|
|
@@ -26,6 +26,12 @@ describe DPL::Provider::Firebase do
|
|
|
26
26
|
provider.push_app
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
it 'should include the message specified' do
|
|
30
|
+
provider.options.update(:message => 'test message')
|
|
31
|
+
expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --message 'test message' --token 'abc123'")
|
|
32
|
+
provider.push_app
|
|
33
|
+
end
|
|
34
|
+
|
|
29
35
|
it 'should default to no project override' do
|
|
30
36
|
expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --token 'abc123'")
|
|
31
37
|
provider.push_app
|