lib/fulmar/domain/task/configuration.rake in fulmar-2.0.2 vs lib/fulmar/domain/task/configuration.rake in fulmar-2.1.0
- old
+ new
@@ -41,5 +41,19 @@
end
end
info "Feelin' fine." if error_count == 0
end
end
+
+if File.exist?("#{Fulmar::Infrastructure::Service::SSHConfigService::DEFAULT_CONFIG_FILE}.bak")
+ namespace :revert do
+ task :ssh_config do
+ config = Fulmar::Infrastructure::Service::SSHConfigService::DEFAULT_CONFIG_FILE
+ backup = "#{config}.bak"
+ temp = "#{config}.tmp"
+ FileUtils.cp config, temp
+ FileUtils.cp backup, config
+ FileUtils.mv temp, backup
+ Fulmar::Infrastructure::Service::SSHConfigService.new(config).show_diff
+ end
+ end
+end
\ No newline at end of file