Sha256: 0cfa636c77c16c72afd002ce5d1da3b34be7d436e510d06f17b44ef4a4a17690
Contents?: true
Size: 696 Bytes
Versions: 94
Compression:
Stored size: 696 Bytes
Contents
module DPL class Provider class Firebase < Provider npm_g 'firebase-tools@^2.1', 'firebase' def check_auth raise Error, "must supply token option or FIREBASE_TOKEN environment variable" if !options[:token] && !context.env['FIREBASE_TOKEN'] end def check_app error "missing firebase.json" unless File.exist? "firebase.json" end def needs_key? false end def push_app command = "firebase deploy --non-interactive" command << " -f #{options[:project]}" if options[:project] command << " --token '#{options[:token]}'" if options[:token] context.shell command end end end end
Version data entries
94 entries across 94 versions & 1 rubygems