Class: Migreazy::Source::WorkingCopy
- Inherits:
-
Migreazy::Source
- Object
- Migreazy::Source
- Migreazy::Source::WorkingCopy
- Defined in:
- lib/migreazy.rb
Instance Attribute Summary
Attributes inherited from Migreazy::Source
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize ⇒ WorkingCopy
constructor
A new instance of WorkingCopy.
Methods inherited from Migreazy::Source
Constructor Details
#initialize ⇒ WorkingCopy
Returns a new instance of WorkingCopy.
161 162 163 164 165 166 167 |
# File 'lib/migreazy.rb', line 161 def initialize @migrations = Dir.entries("./db/migrate").select { |entry| entry =~ /^\d+.*\.rb$/ }.map { |entry| entry.gsub(/^0*(\d+)_.*/, '\1') } end |
Instance Method Details
#description ⇒ Object
169 170 171 |
# File 'lib/migreazy.rb', line 169 def description "Working copy" end |