Class: Crowbar::Client::App::Batch
- Inherits:
-
Base
- Object
- Thor
- Base
- Crowbar::Client::App::Batch
show all
- Defined in:
- lib/crowbar/client/app/batch.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#build(file) ⇒ Object
51
52
53
54
55
56
57
58
59
|
# File 'lib/crowbar/client/app/batch.rb', line 51
def build(file)
Command::Batch::Build.new(
*command_params(
file: file
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#export(*proposals) ⇒ Object
88
89
90
91
92
93
94
95
96
|
# File 'lib/crowbar/client/app/batch.rb', line 88
def export(*proposals)
Command::Batch::Export.new(
*command_params(
proposals: proposals
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|