Class: Texas::Build::Task::ExecuteAfterScripts

Inherits:
Script
  • Object
show all
Defined in:
lib/texas/build/task/execute_after_scripts.rb

Overview

This build task checks the ‘after’ script in the config’s script section and executes it, if present.

Instance Attribute Summary

Attributes inherited from Base

#build

Instance Method Summary collapse

Methods inherited from Script

#cmd_from_config, #execute, #execute_in

Methods inherited from Base

#initialize

Methods included from OutputHelper

#trace, #verbose, #warning

Constructor Details

This class inherits a constructor from Texas::Build::Task::Base

Instance Method Details

#cmdObject



8
9
10
# File 'lib/texas/build/task/execute_after_scripts.rb', line 8

def cmd
  cmd_from_config :after
end

#runObject



12
13
14
# File 'lib/texas/build/task/execute_after_scripts.rb', line 12

def run
  execute cmd if cmd
end