Method: Puppetfactory::Plugins::Example#redeploy
- Defined in:
- lib/puppetfactory/plugins/example.rb
#redeploy(username) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/puppetfactory/plugins/example.rb', line 54 def redeploy(username) begin if username == 'production' raise "Can't redeploy production environment" end delete(username) deploy(username) rescue => e raise "Error redeploying environment #{username}: #{e.}" end # return true if our action succeeded true end |