class Crowbar::Client::App::Batch
A Thor based CLI wrapper for batch commands
Public Instance Methods
export(file = nil)
click to toggle source
Batch
export command
It will collect the information of the proposals in a YAML format. You can directly provide a path to a file or just pipe the content into stdout. To pipe the content to stdout you should just write a `-` instead of a specific filename.
@param file [String] the path of the file @return [String] a formatted response from the server
# File lib/crowbar/client/app/batch.rb, line 70 def export(file = nil) Command::Batch::Export.new( *command_params( file: file ) ).execute rescue => e catch_errors(e) end