Class: DeployNotes::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- DeployNotes::Engine
- Defined in:
- lib/deploy_notes.rb
Overview
engine parent class
Class Method Summary collapse
Class Method Details
.deploy_type ⇒ Object
13 14 15 |
# File 'lib/deploy_notes.rb', line 13 def self.deploy_type revision.blank? ? DeployNotes::Local.new : DeployNotes::Cap.new end |
.get ⇒ Object
8 9 10 11 |
# File 'lib/deploy_notes.rb', line 8 def self.get deploy_note ||= deploy_type deploy_note.get end |
.revision ⇒ Object
17 18 19 |
# File 'lib/deploy_notes.rb', line 17 def self.revision `cat #{Rails.root.to_s}/REVISION | tr -d '\n'` end |