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.35.travis.2098.5 lib/dpl/provider/firebase.rb
dpl-1.8.35.travis.2090.5 lib/dpl/provider/firebase.rb
dpl-1.8.34.travis.2089.5 lib/dpl/provider/firebase.rb
dpl-1.8.34 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.2049.5 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.2048.5 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.2043.5 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.2031.5 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.2025.5 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.1999.5 lib/dpl/provider/firebase.rb
dpl-1.8.33.travis.1976.5 lib/dpl/provider/firebase.rb
dpl-1.8.32 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1958.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1957.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1956.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1955.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1950.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1949.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1935.5 lib/dpl/provider/firebase.rb
dpl-1.8.32.travis.1901.6 lib/dpl/provider/firebase.rb