Changeset 114 for trunk/app/models/deployment.rb
- Timestamp:
- 06/13/08 23:04:14 (7 months ago)
- Files:
-
- 1 modified
-
trunk/app/models/deployment.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/deployment.rb
r90 r114 11 11 12 12 attr_accessible :task, :prompt_config, :description, :excluded_host_ids 13 14 tz_time_attributes :created_at, :updated_at, :completed_at 15 13 16 14 # given configuration hash on create in order to satisfy prompt configurations 17 15 attr_accessor :prompt_config … … 78 76 raise 'cannot complete a second time' if self.completed? 79 77 self.success = 0 80 self.completed_at = T zTime.now78 self.completed_at = Time.now 81 79 self.save! 82 80 … … 89 87 raise 'cannot complete a second time' if self.completed? 90 88 self.success = 1 91 self.completed_at = T zTime.now89 self.completed_at = Time.now 92 90 self.save! 93 91
