Sha256: 2c2894832a7f3d9f3453f48b35f7d4ec54ede624a31c77f106b769fa1479ea64

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

require "albacore/albacoretask"
require "albacore/config/execconfig"

class Exec
  TaskName = :exec

  include Albacore::Task
  include Albacore::RunCommand
  include Configuration::Exec

  def initialize
    super()
    update_attributes(exec.to_hash)
  end
    
  def execute
    result = run_command("Exec")
    fail_with_message("Exec failed, see the build log for more details.") unless result
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/exec.rb
albacore-1.0.0.rc.3 lib/albacore/exec.rb