Sha256: 31e082671e7b840572e42993d6f5233f9885f4a23b32c37f550a52342d2bf0fc

Contents?: true

Size: 488 Bytes

Versions: 41

Compression:

Stored size: 488 Bytes

Contents

require 'rake'

namespace :dawn do

  task :require do
    begin
      require 'codesake-dawn'
    rescue LoadError => e
      if defined?(Rails)
        Rake::Task['dawn:require_environment'].invoke
      else
        raise e
      end
    end
  end
  task :require_environment do
    if defined?(Rails)
      Rake::Task['environment'].invoke
    end
    require 'codesake-dawn'
  end

  desc 'Execute codesake-dawn on the current directory'
  task :run do
    system "dawn ."
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
dawnscanner-2.2.0 lib/dawn/tasks.rb
dawnscanner-2.1.1 lib/dawn/tasks.rb
dawnscanner-2.1.0 lib/dawn/tasks.rb
dawnscanner-2.0.0 lib/dawn/tasks.rb
dawnscanner-2.0.0.rc5 lib/dawn/tasks.rb
dawnscanner-2.0.0.rc4 lib/dawn/tasks.rb
dawnscanner-2.0.0.rc3 lib/dawn/tasks.rb
dawnscanner-2.0.0.rc2 lib/dawn/tasks.rb
dawnscanner-2.0.0.rc1 lib/dawn/tasks.rb
dawnscanner-1.6.9 lib/dawn/tasks.rb
dawnscanner-1.6.8 lib/dawn/tasks.rb
dawnscanner-1.6.7 lib/dawn/tasks.rb
dawnscanner-1.6.6 lib/dawn/tasks.rb
dawnscanner-1.6.5 lib/dawn/tasks.rb
dawnscanner-1.6.4 lib/dawn/tasks.rb
dawnscanner-1.6.3 lib/dawn/tasks.rb
dawnscanner-1.6.2 lib/dawn/tasks.rb
dawnscanner-1.6.1 lib/dawn/tasks.rb
dawnscanner-1.6.0 lib/dawn/tasks.rb
dawnscanner-1.5.2 lib/dawn/tasks.rb