rrrene/texas

View on GitHub
lib/texas/build/task/execute_after_scripts.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Texas
  module Build
    module Task
      # This build task checks the 'after' script in
      # the config's script section and executes it, if present.
      #
      class ExecuteAfterScripts < Script
        def cmd
          cmd_from_config :after
        end

        def run
          execute cmd if cmd
        end
      end
    end
  end
end