Sha256: 84188fdda1c98e5864c54631c86b316f80eca6fb076156850f77a6f0bb6af3c3
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
require 'rake' require 'rake/tasklib' module Spectifly class Task < ::Rake::TaskLib attr_accessor :config_path def initialize(task_name, *args, &block) @stuff = 'default stuff' task task_name, *args do |task_name, task_args| block.call(self) if block puts "This is #{task_name} task with #{config_path}" end end end end Dir[File.join(File.dirname(__FILE__), '..', 'tasks', '*.rake')].each do |path| load path end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spectifly-0.0.1 | lib/spectifly/tasks.rb |