Class: Texas::Build::Task::ExecuteBeforeScripts
- Defined in:
- lib/texas/build/task/execute_before_scripts.rb
Overview
This build task checks the ‘before’ script in the config’s script section and executes it, if present.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Script
#cmd_from_config, #execute, #execute_in
Methods inherited from Base
Methods included from OutputHelper
Constructor Details
This class inherits a constructor from Texas::Build::Task::Base
Instance Method Details
permalink #cmd ⇒ Object
[View source]
8 9 10 |
# File 'lib/texas/build/task/execute_before_scripts.rb', line 8 def cmd cmd_from_config :before end |
permalink #run ⇒ Object
[View source]
12 13 14 |
# File 'lib/texas/build/task/execute_before_scripts.rb', line 12 def run execute cmd if cmd end |