Sha256: 6bb5051a661c4cc2fe29c22a6df5b27bed4988a5ae9272fade84a62611ee6279
Contents?: true
Size: 703 Bytes
Versions: 93
Compression:
Stored size: 703 Bytes
Contents
module DPL class Provider class Firebase < Provider npm_g 'firebase-tools@^3.0', '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 << " --project #{options[:project]}" if options[:project] command << " --token '#{options[:token]}'" if options[:token] context.shell command end end end end
Version data entries
93 entries across 93 versions & 1 rubygems