Sha256: 575c907b0f3d6d3e2b69834b6420d288c7d1689810ddf7c2e91bec96efb8da1c

Contents?: true

Size: 389 Bytes

Versions: 4

Compression:

Stored size: 389 Bytes

Contents

require 'albacore/albacoretask'

class Exec
  include Albacore::Task
  include Albacore::RunCommand

  def initialize
    super()
    update_attributes Albacore.configuration.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

4 entries across 4 versions & 1 rubygems

Version Path
albacore-0.2.5 lib/albacore/exec.rb
albacore-0.2.4 lib/albacore/exec.rb
albacore-0.2.3 lib/albacore/exec.rb
albacore-0.2.2 lib/albacore/exec.rb