Class: OrgMode::DefaultConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/org_mode/configuration.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.write_to(target_path) ⇒ Object



66
67
68
# File 'lib/org_mode/configuration.rb', line 66

def self.write_to(target_path)
  new.write_to(target_path)
end

Instance Method Details

#write_to(target_path) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/org_mode/configuration.rb', line 57

def write_to(target_path)
  dirname = ::File.dirname(target_path)
  config_dir = "#{dirname}/.orgmode"
  %x[mkdir #{config_dir}]

  DefaultOrgfile.write_to("#{config_dir}/gtd.org", :target_path=>target_path)
  DefaultRcFile.write_to(target_path)
end