Sha256: 58087a0c2065ca2c6780163112572c9dc0f2a9275451cf9c0e402f0ae9dbdb7b
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
module MinceMigrator require 'command_line_reporter' class StatusReport include CommandLineReporter attr_reader :migration def initialize(migration) @migration = migration end def run vertical_spacing 2 header title: "Migration Details for #{migration.name}", bold: true, rule: true, align: 'center', width: 70, timestamp: true table border: false do row do column 'Name', width: 15 column migration.name, width: 30 end row do column 'Status' if migration.status == 'not ran' column migration.status, color: 'red' else column migration.status, color: 'green' end end row do column 'Age' column migration.age end row do column 'Date Created' column migration.time_created.strftime("%m/%d/%Y") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mince_migrator-1.0.0 | lib/mince_migrator/status_report.rb |