Module: MSPRelease::Exec::Helpers

Included in:
MSPRelease, Build, CLI::Command, Git, Git::Commit, MakeBranch, Project::Base, Project::Gem
Defined in:
lib/msp_release/exec.rb

Instance Method Summary collapse

Instance Method Details

#exec(command, options = {}) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/msp_release/exec.rb', line 23

def exec(command, options={})
  # use the options we were constructed with if they exist
  if respond_to?(:options)
    options[:quiet] = !self.options.verbose? unless options.has_key? :quiet
  end

  if respond_to? :exec_name
    options[:name] = exec_name unless options.has_key? :name
  end

  MSPRelease::Exec.exec(command, options)
end