Method: DeployInfo::State#delete_state
- Defined in:
- lib/deploy-info/state.rb
#delete_state(app) ⇒ Object
> Remove App from the State
72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/deploy-info/state.rb', line 72 def delete_state(app) # => Find the App existing = find_state(app) return 'App not present in state' unless existing # => Delete the App from State state.delete(existing) # => Write Out the Updated State write_state # => Return the Deleted App existing end |