Class: RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/vendor/thor/spec/rake_compat_spec.rb

Instance Method Summary collapse

Constructor Details

#initializeRakeTask

Returns a new instance of RakeTask.



8
9
10
# File 'lib/vendor/thor/spec/rake_compat_spec.rb', line 8

def initialize
  define
end

Instance Method Details

#defineObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/vendor/thor/spec/rake_compat_spec.rb', line 12

def define
  $main.instance_eval do
    desc "Say it's cool"
    task :cool do
      puts "COOL"
    end

    namespace :hiper_mega do
      task :super do
        puts "HIPER MEGA SUPER"
      end
    end
  end
end