exe/nando in nando-1.0.6 vs exe/nando in nando-1.1.0
- old
+ new
@@ -21,10 +21,14 @@
else
options[:functions_to_add] = [] << function
end
end
+ opt.on("-d", "--dry-run", "Pass value") do |bool|
+ options[:dry_run] = true
+ end
+
opt.on("-h", "--help", "Show this message") do |value|
NandoInterface.print_help_message()
exit 0
end
end
@@ -33,10 +37,10 @@
parser.parse!
action = ARGV.shift()
case action
when 'up'
- NandoMigrator.instance.migrate()
+ NandoMigrator.instance.migrate(options)
when 'down'
NandoMigrator.instance.rollback()
when 'apply'
if ARGV[0].nil?
raise Nando::InputError.new('Insufficient arguments') # ARGV[0] is the migration version to apply