Guest User

Untitled

a guest
Apr 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Patrick
  2. def self.should_i_deploy?(*args)
  3. true
  4. end
  5. end
  6.  
  7. puts Patrick.should_i_deploy?({ :visitors => 1000, :on_signup_page => 500 })
  8. puts Patrick.should_i_deploy?({ :failed_tests => 30, :total_tests => 35 })
  9. puts Patrick.should_i_deploy?({ :requires_large_alter_table_migration => true })
  10. puts Patrick.should_i_deploy?({ :down_time_required => 24.hours, :available_servers => 1 })
Add Comment
Please, Sign In to add comment