Class: Corundum::InDirCommandTask

Inherits:
Mattock::Rake::CommandTask
  • Object
show all
Defined in:
lib/corundum/github-pages.rb

Instance Method Summary collapse

Instance Method Details

#action(*args) ⇒ Object



34
35
36
37
38
# File 'lib/corundum/github-pages.rb', line 34

def action(*args)
  Dir.chdir target_dir do
    super
  end
end

#default_configuration(parent) ⇒ Object



22
23
24
25
# File 'lib/corundum/github-pages.rb', line 22

def default_configuration(parent)
  super
  parent.copy_settings_to(self)
end

#needed?Boolean

Returns:

  • (Boolean)


27
28
29
30
31
32
# File 'lib/corundum/github-pages.rb', line 27

def needed?
  return true unless File.directory? target_dir
  Dir.chdir target_dir do
    super
  end
end