class DPL::Provider::Firebase
Public Instance Methods
check_app()
click to toggle source
# File lib/dpl/provider/firebase.rb, line 10 def check_app error "missing firebase.json" unless File.exist? "firebase.json" end
check_auth()
click to toggle source
# File lib/dpl/provider/firebase.rb, line 6 def check_auth raise Error, "must supply token option or FIREBASE_TOKEN environment variable" if !options[:token] && !context.env['FIREBASE_TOKEN'] end
needs_key?()
click to toggle source
# File lib/dpl/provider/firebase.rb, line 14 def needs_key? false end
push_app()
click to toggle source
# File lib/dpl/provider/firebase.rb, line 18 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 end