Class: Jara::Releaser::Shell
- Inherits:
-
Object
- Object
- Jara::Releaser::Shell
- Defined in:
- lib/jara/releaser.rb
Instance Method Summary collapse
Instance Method Details
#exec(command) ⇒ Object
179 180 181 182 183 184 185 186 187 |
# File 'lib/jara/releaser.rb', line 179 def exec(command) output = %x(#{command}) unless $?.success? raise ExecError, %(Command `#{command}` failed with output: #{output}) end output rescue Errno::ENOENT => e raise ExecError, %(Command `#{command}` failed: #{e.}) end |