Sha256: 2834e45e321251b937ead721e2e5325ad591958727ff043ad3f19190a2bae2e0

Contents?: true

Size: 950 Bytes

Versions: 7

Compression:

Stored size: 950 Bytes

Contents

#!/usr/bin/env ruby

desc "copy"
task :copy do
  puts "COPY"
end

namespace "nest" do
  desc "nest copy"
  task :copy do
    puts "NEST COPY"
  end
  task :xx => :copy
end

anon_ns = namespace do
  desc "anonymous copy task"
  task :copy do
    puts "ANON COPY"
  end
end

desc "Top level task to run the anonymous version of copy"
task :anon => anon_ns[:copy]

namespace "very" do
  namespace "nested" do
    task "run" => "rake:copy"
  end
end

namespace "a" do
  desc "Run task in the 'a' namespace"
  task "run" do
    puts "IN A"
  end
end

namespace "b" do
  desc "Run task in the 'b' namespace"
  task "run" => "a:run" do
    puts "IN B"
  end
end

namespace "file1" do
  file "xyz.rb" do
    puts "XYZ1"
  end
end

namespace "file2" do
  file "xyz.rb" do
    puts "XYZ2"
  end
end

namespace "scopedep" do
  task :prepare do
    touch "scopedep.rb"
    puts "PREPARE"
  end
  file "scopedep.rb" => [:prepare] do
    puts "SCOPEDEP"
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
drake-0.9.0.0.3.0 test/data/namespace/Rakefile
rake-0.9.0 test/data/namespace/Rakefile
rake-0.9.0.beta.5 test/data/namespace/Rakefile
rake-0.9.0.beta.4 test/data/namespace/Rakefile
rake-0.9.0.beta.2 test/data/namespace/Rakefile
rake-0.9.0.beta.1 test/data/namespace/Rakefile
rake-0.9.0.beta.0 test/data/namespace/Rakefile