Class: PhilColumns::Command::Mulligan

Inherits:
Base
  • Object
show all
Defined in:
lib/phil_columns/command/mulligan.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Output

#confirm, included, #say, #say_error, #say_ok, #say_skipping, #write

Constructor Details

This class inherits a constructor from PhilColumns::Command::Base

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/phil_columns/command/mulligan.rb', line 7

def execute
  load_environment

  say( "- DRY RUN -", :yellow ) if dry_run?

  unless dry_run?
    migrator.mulligan
    archivist.clear_seeds
  end

  seeder.execute
end