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

Version Path
dpl-1.8.40.travis.2194.5 lib/dpl/provider/firebase.rb
dpl-1.8.40.travis.2191.5 lib/dpl/provider/firebase.rb
dpl-1.8.40.travis.2174.5 lib/dpl/provider/firebase.rb
dpl-1.8.40.travis.2172.5 lib/dpl/provider/firebase.rb
dpl-1.8.40.travis.2164.5 lib/dpl/provider/firebase.rb
dpl-1.8.39.travis.2162.5 lib/dpl/provider/firebase.rb
dpl-1.8.39 lib/dpl/provider/firebase.rb
dpl-1.8.39.travis.2157.5 lib/dpl/provider/firebase.rb
dpl-1.8.38 lib/dpl/provider/firebase.rb
dpl-1.8.38.travis.2156.5 lib/dpl/provider/firebase.rb
dpl-1.8.38.travis.2151.5 lib/dpl/provider/firebase.rb
dpl-1.8.38.travis.2140.5 lib/dpl/provider/firebase.rb
dpl-1.8.37 lib/dpl/provider/firebase.rb
dpl-1.8.38.travis.2138.5 lib/dpl/provider/firebase.rb
dpl-1.8.37.travis.2137.5 lib/dpl/provider/firebase.rb
dpl-1.8.37.travis.2118.5 lib/dpl/provider/firebase.rb
dpl-1.8.36 lib/dpl/provider/firebase.rb
dpl-1.8.37.travis.2106.5 lib/dpl/provider/firebase.rb
dpl-1.8.36.travis.2099.5 lib/dpl/provider/firebase.rb
dpl-1.8.35 lib/dpl/provider/firebase.rb