class CMD::Update

Public Class Methods

new() click to toggle source
# File lib/zarchitect/cmd_update.rb, line 5
def initialize
  if GPI::CLU.check_option('r')
    Zarchitect.rebuild
    Zarchitect.setup_html_tree
    @assets = Assets.new
    @assets.cpdirs
    @assets.update
    SCSS.run
  end
  @files = FileManager.new
  @files.run
end

Public Instance Methods

run() click to toggle source
# File lib/zarchitect/cmd_update.rb, line 18
def run
  Zarchitect.sconf.each { |s| Zarchitect.add_section(s) }
  Zarchitect.add_section(Zarchitect.iconf)
  Zarchitect.sections.sort_by! { |v| v.conf.id }
  Zarchitect.sections.push Zarchitect.sections.shift
  Zarchitect.sections.each do |s|
    s.build_html
    s.write_html
  end
  rss.build
end