Sha256: e5fe929f68066aa37e42ce83fe10151749806f04af310e54746e79a856b948d8
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 Bytes
Contents
require 'nicht/exceptions' require 'nicht/settings' require 'nicht/stats' require 'nicht/version' module Nicht class << self def run(path, search = nil) settings = Nicht::Settings.new path begin projects_path = settings.get_path rescue Nicht::SettingsNotFound puts 'Settings not found. You should create .nichtrc with settings in your home directory.' rescue Nicht::SettingsNotValid puts 'Settings are not valid.' else render_results(projects_path, search) end end def render_results(projects_path, search) stats = Nicht::Stats.new projects_path, search stats.render end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nicht-0.1.6 | lib/nicht.rb |