Class: Achoo::Plugin::VCS

Inherits:
Achoo::PluginBase show all
Includes:
UI::ExceptionHandling
Defined in:
lib/achoo/plugin/vcs.rb

Instance Method Summary collapse

Methods included from UI::ExceptionHandling

#get_exception_reason, #handle_exception, #handle_fatal_exception

Instance Method Details

#before_register_hour_remark(date) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/achoo/plugin/vcs.rb', line 14

def before_register_hour_remark(date)
  puts '-' * 80
  puts "VCS logs for #{date}:"
  begin
    Achoo::VCS.print_logs_for(date, RC[:vcs_dirs])
  rescue Exception => e
    puts handle_exception("Failed to retrieve VCS logs.", e)
  end
end

#state_ok?Boolean

Returns:

  • (Boolean)


12
# File 'lib/achoo/plugin/vcs.rb', line 12

def state_ok?; RC.has_key?(:vcs_dirs) && !RC[:vcs_dirs].empty?; end