Sha256: 3f7aab15293bafa6e1b2254967f765f1bf53e6d4ba7478d3b3e643ab819eb11b
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
require 'scripted' require 'rake' require 'rake/tasklib' module Scripted class RakeTask < ::Rake::TaskLib include ::Rake::DSL if defined?(::Rake::DSL) def initialize(name, *group_names, &block) group_names = [:default] if group_names.empty? unless Rake.application.last_description desc "Run scripted groups: #{group_names.map(&:to_s).join(', ')}" end task name do config = Scripted.configure(&block) config.with_default_config_file! config.load_files Scripted.run(config, *group_names) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scripted-0.0.1 | lib/scripted/rake_task.rb |