Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Table of Contents
Rake Task Management Essentials
Rake Task Management Essentials
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Note
Tip
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Chapter 1. The Software Task Management Tool – Rake
Installing Rake
Note
Note
Tip
Introducing rake tasks
The command-line arguments
Note
Tip
Using global Rakefiles to run tasks anywhere
Defining custom rake tasks
Task dependencies – prerequisites
Multiple tasks definitions
Passing arguments to the tasks
The first alternative
The second variant
Note
The structure of a Rake project
Using the import method to load other Rakefiles
Running rake tasks from other tasks
The code conventions of Rake
Summary
Chapter 2. Working with Files
Using file tasks to work with files
The characteristics of the file task dependencies
Note
Note
Tip
Note
Creating a folder with the directory method
Using Rake's file utilities
Using the FileList module functionality to collect the files
Using pathmap to transform file lists
Note
Introducing the FileUtils module
A practical example of automatically generating a config file
Summary
Chapter 3. Working with Rules
Understanding the duplication of the file tasks
Using a rule to get rid of the duplicated file tasks
Note
Detecting a source for the rule dynamically
Using a regular expression to match more tasks
Summary
Chapter 4. Cleaning Up a Build
Setting up a project
Note
The cleaning tasks
Summary
Chapter 5. Running Tasks in Parallel
Defining tasks with parallel prerequisites
Thread safety of multitasks
Note
Multiple task definitions with a common prerequisite
Applying multitasks in practice
Note
Summary
Chapter 6. Debugging Rake Tasks
Using command-line arguments for debugging
Getting a dependency's resolution with --prereqs
Using the --rules option to trace the rule resolution
Using the Ruby approach to debug a Rake project
Note
Tip
Summary
Chapter 7. Integration with Rails
Introducing Rake's integration with Rails
Note
Note
Custom rake tasks in a Rails project
Recurrent running of tasks
Note
Note
Summary
Chapter 8. Testing Rake Tasks
The need for tests
Writing tests for rake tasks
Note
Note
Summary
Chapter 9. Continuous Integration
Introducing Jenkins
Note
Setting up Jenkins
Note
Configuring Jenkins to run rake tasks
Summary
Chapter 10. Relentless Automation
Examples of Rake being used by famous gems
Note
Note
The pain of task execution
Note
Sinatra using Rake to run tests
Sinatra using Rake to generate documentation
Note
Capistrano extending the Rake implementation
Other examples of Sinatra using Rake
Thor – the next generation of Rake
Tip
Summary
Index
A
B
C
D
E
F
G
H
I
J
M
P
R
S
T
V
W
Y
← Prev
Back
Next →
← Prev
Back
Next →