Class: Cuber::Commands::Deploy
- Inherits:
- 
      Object
      
        - Object
- Cuber::Commands::Deploy
 
- Includes:
- Utils
- Defined in:
- lib/cuber/commands/deploy.rb
Instance Method Summary collapse
- #execute ⇒ Object
- 
  
    
      #initialize(options)  ⇒ Deploy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Deploy. 
Methods included from Utils
Constructor Details
#initialize(options) ⇒ Deploy
Returns a new instance of Deploy.
| 5 6 7 | # File 'lib/cuber/commands/deploy.rb', line 5 def initialize @options = end | 
Instance Method Details
#execute ⇒ Object
| 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # File 'lib/cuber/commands/deploy.rb', line 9 def execute if @options[:release] print_step 'Deploying a past release' else checkout set_release_name if @options[:buildpacks] pack else build push end end configure apply rollout end |