Class: DPL::Provider::Firebase
- Inherits:
 - 
      DPL::Provider
      
        
- Object
 - DPL::Provider
 - DPL::Provider::Firebase
 
 
- Defined in:
 - lib/dpl/provider/firebase.rb
 
Instance Method Summary collapse
Instance Method Details
#check_app ⇒ Object
      10 11 12  | 
    
      # File 'lib/dpl/provider/firebase.rb', line 10 def check_app error "missing firebase.json" unless File.exist? "firebase.json" end  | 
  
#check_auth ⇒ Object
      6 7 8  | 
    
      # File 'lib/dpl/provider/firebase.rb', line 6 def check_auth raise Error, "must supply token option or FIREBASE_TOKEN environment variable" if ![:token] && !context.env['FIREBASE_TOKEN'] end  | 
  
#needs_key? ⇒ Boolean
      14 15 16  | 
    
      # File 'lib/dpl/provider/firebase.rb', line 14 def needs_key? false end  | 
  
#push_app ⇒ Object
      18 19 20 21 22 23 24  | 
    
      # File 'lib/dpl/provider/firebase.rb', line 18 def push_app command = "firebase deploy --non-interactive" command << " --project #{[:project]}" if [:project] command << " --message '#{[:message]}'" if [:message] command << " --token '#{[:token]}'" if [:token] context.shell command or raise Error, "Firebase deployment failed" end  |