Top Level Namespace

Defined Under Namespace

Modules: FileReload, LRE, Rake

Instance Method Summary collapse

Instance Method Details

#gt(n) ⇒ Object



10
11
12
13
14
15
# File 'lib/lre/rake_ext.rb', line 10

def gt(n)
  t = Rake::Task[n]
  #puts "action size #{t.actions.size}"

  t.actions = t.actions[-1..-1] if t.actions.size > 1
  t.invoke
end

#gte(n) ⇒ Object



17
18
19
20
21
22
# File 'lib/lre/rake_ext.rb', line 17

def gte(n)
  t = Rake::Task[n]
  #puts "action size #{t.actions.size}"

  t.actions = t.actions[-1..-1] if t.actions.size > 1
  t.execute
end