dpl 1.8.20.travis.1665.3 → 1.8.20.travis.1666.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 +8 -8
- data/lib/dpl/provider/firebase.rb +2 -2
- data/spec/provider/firebase_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YWNmZjcyZmI5ZWY1MDQ1MDE1YzA2ZWE3M2I3NDMwMzA4N2RkN2M2Ng==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NWQ5M2Q1ZTFhMGRjZTY1ZjY3ZDE0MmU3MmY5ODJmOTJkMjBiNTkzOA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NjRkZjEyNWY4MzQ0ZGFiMDI0OTAxMzQ3ZTM4N2M0MWQ5NDY3NzQyNTNlMDVl
|
|
10
|
+
ZGZjNTYwMWI1ZTc4NmRjYzhlMmE3MGY3N2FiZDYzOTM0NTRiMGRhZjkzOGIy
|
|
11
|
+
NGRhNGFlZjUwZDYyY2JiMzlkNWM4MDdlOWRjODljZTc0M2FiZjg=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NWQwN2ZiZjg2NGViYjhkZDY0ZTQ1N2U3NmY0NWY4NGEzY2E3ZWVjNjAzYTc0
|
|
14
|
+
MGVkNjY3NzlkMDgxNTMyNzZmY2I0ZWQwODRiYWYyN2JmN2NmNzhkMDQ3N2Ni
|
|
15
|
+
OTkzNDllMmFlOTI5NTYzZDIxYjViNjViNDM5MTEzZThhZTU4NDk=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module DPL
|
|
2
2
|
class Provider
|
|
3
3
|
class Firebase < Provider
|
|
4
|
-
npm_g 'firebase-tools@^
|
|
4
|
+
npm_g 'firebase-tools@^3.0', 'firebase'
|
|
5
5
|
|
|
6
6
|
def check_auth
|
|
7
7
|
raise Error, "must supply token option or FIREBASE_TOKEN environment variable" if !options[:token] && !context.env['FIREBASE_TOKEN']
|
|
@@ -17,7 +17,7 @@ module DPL
|
|
|
17
17
|
|
|
18
18
|
def push_app
|
|
19
19
|
command = "firebase deploy --non-interactive"
|
|
20
|
-
command << "
|
|
20
|
+
command << " --project #{options[:project]}" if options[:project]
|
|
21
21
|
command << " --token '#{options[:token]}'" if options[:token]
|
|
22
22
|
context.shell command
|
|
23
23
|
end
|
|
@@ -22,7 +22,7 @@ describe DPL::Provider::Firebase do
|
|
|
22
22
|
describe "#push_app" do
|
|
23
23
|
it 'should include the project specified' do
|
|
24
24
|
provider.options.update(:project => 'myapp-dev')
|
|
25
|
-
expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive
|
|
25
|
+
expect(provider.context).to receive(:shell).with("firebase deploy --non-interactive --project myapp-dev --token 'abc123'")
|
|
26
26
|
provider.push_app
|
|
27
27
|
end
|
|
28
28
|
|