README.md in new-0.0.6 vs README.md in new-0.0.7
- old
+ new
@@ -17,11 +17,11 @@
#### Templates
Templates represent a boilerplate directory & file structure preconfigured for a given project type. _(eg js, ruby, gem, rails, etc.)_
#### Tasks
-Tasks represent a process associated with releasing new code. Tasks are run in order they are listed in the project `.new` configuration file. _(eg github, gem, etc.)_
+Tasks represent a process associated with releasing new code. Tasks are run in order they are listed in the project `.new` configuration file.
#### Local Config/Templates/Tasks
After running `new init`, you will have `.new` folder in your home directory. This directory contains:
* `.new` local configuration file
@@ -94,15 +94,22 @@
```ruby
# ~/.new/tasks/foo_task/foo_task.rb
class New::Task::FooTask < New::Test
+ include New::Interpolate # if you need to interpolate files
+ include New::version # if you need to set & manage a semantic version
+
+ # defaults for required options
OPTION = {
foo: 'bar'
}
+ # required `run` method
def run
- # do stuff here
+ # do task stuff here
+
+ access
# access task options from the `options` object
# access all project options from the `project_options` object
end
end
```