Class: Exec

Inherits:
Object
  • Object
show all
Includes:
Albacore::RunCommand, Albacore::Task
Defined in:
lib/albacore/exec.rb

Instance Attribute Summary

Attributes included from Albacore::RunCommand

#command, #working_directory

Attributes included from Logging

#current_log_device, #logger

Instance Method Summary collapse

Methods included from Albacore::RunCommand

#get_command, #run_command

Methods included from AttrMethods

#attr_array, #attr_hash

Methods included from Albacore::Task

clean_dirname, create_rake_task, include_config, included

Methods included from UpdateAttributes

#<<, #update_attributes

Methods included from YAMLConfig

#configure, #load_config_by_task_name

Methods included from Logging

#create_logger, #log_device=, #log_level, #log_level=

Methods included from Failure

#fail_with_message

Constructor Details

#initializeExec

Returns a new instance of Exec.



7
8
9
10
# File 'lib/albacore/exec.rb', line 7

def initialize
  super()
  update_attributes Albacore.configuration.exec.to_hash
end

Instance Method Details

#executeObject



12
13
14
15
16
17
# File 'lib/albacore/exec.rb', line 12

def execute
  result = run_command "Exec"
  
  failure_message = 'Exec Failed. See Build Log For Detail'
  fail_with_message failure_message if !result
end