Class: Convergence::Command::Dryrun
- Inherits:
-
Convergence::Command
- Object
- Convergence::Command
- Convergence::Command::Dryrun
- Defined in:
- lib/convergence/command/dryrun.rb
Instance Method Summary collapse
Methods inherited from Convergence::Command
Constructor Details
This class inherits a constructor from Convergence::Command
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/convergence/command/dryrun.rb', line 9 def execute current_dir_path = Pathname.new(@opts[:input]).realpath.dirname input_tables = Convergence::DSL.parse(File.open(@opts[:input]).read, current_dir_path) current_tables = dumper.dump # -- maybe it's redundant output # output_diff(input_tables, current_tables) output_sql(input_tables, current_tables) end |