Class: Migreazy::Source::WorkingCopy

Inherits:
Migreazy::Source show all
Defined in:
lib/migreazy.rb

Instance Attribute Summary

Attributes inherited from Migreazy::Source

#migrations

Instance Method Summary collapse

Methods inherited from Migreazy::Source

new_from_command_line_arg

Constructor Details

#initializeWorkingCopy

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

#descriptionObject



169
170
171
# File 'lib/migreazy.rb', line 169

def description
  "Working copy"
end