diff --git a/README.md b/README.md index 697ad3fce..416332785 100644 --- a/README.md +++ b/README.md @@ -1107,6 +1107,8 @@ Options: firebase.json) (type: string) --message MSG Message describing this deployment. (type: string) --only SERVICES Firebase services to deploy (type: string, note: can be a comma-separated list) + --except SERVICES Firebase services to not deploy (type: string, note: can be a comma-separated list) + --public PATH Override the Hosting public directory specified in firebase.json --[no-]force Whether or not to delete Cloud Functions missing from the current working directory @@ -1120,7 +1122,7 @@ Common Options: Examples: dpl firebase --token token - dpl firebase --token token --project name --message msg --only services --force + dpl firebase --token token --project name --message msg --only services --except services --public path --force ``` Options can be given via env vars if prefixed with `FIREBASE_`. E.g. the option `--token` can be diff --git a/spec/dpl/providers/firebase_spec.rb b/spec/dpl/providers/firebase_spec.rb index 16bcf432d..be1478065 100644 --- a/spec/dpl/providers/firebase_spec.rb +++ b/spec/dpl/providers/firebase_spec.rb @@ -6,24 +6,32 @@ before { |c| subject.run if run?(c) } describe 'by default' do - it { should have_run '[npm:install] firebase-tools@^6.3 (firebase)' } - it { should have_run 'firebase deploy --non-interactive --token="token"' } + it { should have_run '[npm:install] firebase-tools@^9.16 (firebase)' } + it { should have_run 'firebase deploy --token="token"' } end describe 'given --project name' do - it { should have_run 'firebase deploy --non-interactive --project="name" --token="token"' } + it { should have_run 'firebase deploy --project="name" --token="token"' } end describe 'given --message msg' do - it { should have_run 'firebase deploy --non-interactive --message="msg" --token="token"' } + it { should have_run 'firebase deploy --message="msg" --token="token"' } end describe 'given --only only' do - it { should have_run 'firebase deploy --non-interactive --token="token" --only="only"' } + it { should have_run 'firebase deploy --token="token" --only="only"' } + end + + describe 'given --except except' do + it { should have_run 'firebase deploy --token="token" --except="except"' } + end + + describe 'given --public public' do + it { should have_run 'firebase deploy --token="token" --public="public"' } end describe 'given --force' do - it { should have_run 'firebase deploy --non-interactive --token="token" --force' } + it { should have_run 'firebase deploy --token="token" --force' } end describe 'missing firebase.json', run: false do