Class: Exec
- Inherits:
-
Object
- Object
- Exec
- Includes:
- Albacore::RunCommand, Albacore::Task
- Defined in:
- lib/albacore/exec.rb
Instance Attribute Summary
Attributes included from Albacore::RunCommand
Attributes included from Logging
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ Exec
constructor
A new instance of Exec.
Methods included from Albacore::RunCommand
Methods included from AttrMethods
Methods included from Albacore::Task
clean_dirname, create_rake_task, include_config, included
Methods included from UpdateAttributes
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
Constructor Details
#initialize ⇒ Exec
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
#execute ⇒ Object
12 13 14 15 16 17 |
# File 'lib/albacore/exec.rb', line 12 def execute result = run_command "Exec" = 'Exec Failed. See Build Log For Detail' if !result end |