class EySecrets::Shell
Public Class Methods
execute!(action, options = {}) { |command| ... }
click to toggle source
# File lib/ey_secrets/adapters/shell.rb, line 8 def self.execute!(action, options = {}) action.commands.each do |command| yield(command) if block_given? unless options[:dry_run] unless system(command) raise(CommandFailed, "Error while executing #{command}") end end end end