Sha256: d094fa6b91cd61aee5fb1b0e2a651bd971bf896b6626e6d5cf187259e34f5e9a

Contents?: true

Size: 824 Bytes

Versions: 30

Compression:

Stored size: 824 Bytes

Contents

module DPL
  class Provider
    class Firebase < Provider
      npm_g 'firebase-tools@^6.3', '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 << " --message '#{options[:message]}'" if options[:message]
        command << " --token '#{options[:token]}'" if options[:token]
        context.shell command or raise Error, "Firebase deployment failed"
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
dpl-firebase-1.10.17.travis.6637.6 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.16 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.16.travis.6625.6 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.16.travis.6619.6 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.16.travis.5961.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.15 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.15.travis.5877.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.14 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.13 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.13.travis.4159.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.13.travis.4141.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.13.travis.4040.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.13.travis.4033.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.12 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.12.travis.4032.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.12.travis.3794.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.12.travis.3506.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.11.travis.3504.5 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.11 lib/dpl/provider/firebase.rb
dpl-firebase-1.10.11.travis.3499.5 lib/dpl/provider/firebase.rb