Sha256: e99c1638fa22668f3c3451cbbc09bffa78ba9e6883b806fcd1ac8660c4b6bd63

Contents?: true

Size: 470 Bytes

Versions: 1

Compression:

Stored size: 470 Bytes

Contents

require 'albacore/support/albacore_helper'

class Exec
  extend AttrMethods
  include RunCommand
  include YAMLConfig
  include Logging
  
  attr_array :parameters
  
  def initialize
    @path_to_command=''
    @parameters = []
    super()
  end
    
  def execute
    result = run_command "Exec", @parameters.join(" ")
    
    failure_message = 'Exec Failed. See Build Log For Detail'
    fail_with_message failure_message if !result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.1.0 lib/albacore/exec.rb