dev_tasks <img src=“https://badge.fury.io/rb/dev_tasks.png” alt=“Gem Version” />

A ruby gem to aid in the definition of various rake tasks.

The dev_tasks gem defines a constant DEV

Installation

The gem can be installed by the single command

gem install dev_task

Usage

This is an example of a simple usage

require 'dev_tasks'

Tasks

:add

adds files designated by DEV [:files] [:source] to revision control system (if applicable).

:build

executed a sequence of build commands. recognized files in DEV [:files] [:build] will have corresponding build commands automatically added.

:test

executes a sequence of test commands. recognized files in DEV [:files] [:test] will have corresponding build commands automatically added.

:commit

commits outstanding changed to revision controls system (if applicable).

Keys

DEV [:files] [:source]

a FileList defining source files.

Examples

adding files to existing FileList

DEV[:files][:source].include('**/*{js,bash}')

defining a new FileList

DEV[:files][:source]=FileList.new('**/*{rb,json}')

CommandArrays

DEV [:commands] [:add]

License

Copyright 2014 Lou Parslow

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.