Sha256: 5b2dc198da1299f8af295d85a0ad5d4e8b1d5c6ffbdd78f63e60fa1f8b209c8f

Contents?: true

Size: 790 Bytes

Versions: 137

Compression:

Stored size: 790 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

Version data entries

137 entries across 109 versions & 11 rubygems

Version Path
craigmarksmith-rake-0.8.3.100 test/data/namespace/Rakefile
craigmarksmith-rake-0.8.4.101 test/data/namespace/Rakefile
craigmarksmith-rake-0.8.4.102 test/data/namespace/Rakefile
craigmarksmith-rake-0.8.4.103 test/data/namespace/Rakefile
elliottcable-echoe-3.1.1 vendor/rake/test/data/namespace/Rakefile
elliottcable-echoe-3.1.2 vendor/rake/test/data/namespace/Rakefile
jimweirich-rake-0.8.1.10 test/data/namespace/Rakefile
jimweirich-rake-0.8.1.11 test/data/namespace/Rakefile
jimweirich-rake-0.8.1.5 test/data/namespace/Rakefile
jimweirich-rake-0.8.1.6 test/data/namespace/Rakefile
jimweirich-rake-0.8.1.7 test/data/namespace/Rakefile
jimweirich-rake-0.8.1.8 test/data/namespace/Rakefile
jimweirich-rake-0.8.1.9 test/data/namespace/Rakefile
jimweirich-rake-0.8.2.99 test/data/namespace/Rakefile
jimweirich-rake-0.8.2 test/data/namespace/Rakefile
jimweirich-rake-0.8.3.1 test/data/namespace/Rakefile
jimweirich-rake-0.8.3.100 test/data/namespace/Rakefile
jimweirich-rake-0.8.3.99 test/data/namespace/Rakefile
jimweirich-rake-0.8.3 test/data/namespace/Rakefile
jimweirich-rake-0.8.4.99 test/data/namespace/Rakefile