Sha256: 71153f730c2ead113bda6741601563cd5271f97dbb4fcac529cd36cafa16ff5c

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

namespace :who_am_i do
  desc "Annotate models"
  task :main do
    main = WhoAmI::Function::Main.new(File.expand_path("."))
    main.call
  end
end

desc "Annotate"
task who_am_i: "who_am_i:main"

config = WhoAmI::Function::LoadConfig.new(File.expand_path(".")).call

if config.autorun_enabled?
  config.autorun_after_tasks.each do |task_name|
    Rake::Task[task_name].enhance do
      Rake::Task["who_am_i:main"].invoke
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
who_am_i-0.0.6 lib/who_am_i/tasks.rake
who_am_i-0.0.5 lib/who_am_i/tasks.rake
who_am_i-0.0.4 lib/who_am_i/tasks.rake
who_am_i-0.0.3 lib/who_am_i/tasks.rake