Sha256: c150335a8758ebba529ac34a5b814e3690e98c224dc91460b5e95a18f242cd78

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

require 'albacore/albacoremodel'
require 'albacore/config/execconfig'

class Exec
  include AlbacoreModel
  include RunCommand
  include Configuration::Exec

  def initialize
    super()
    update_attributes exec.to_hash
  end
    
  def execute
    result = run_command "Exec"
    
    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.2.0.preview1 lib/albacore/exec.rb