module Dotfu
Constants
- VERSION
Public Instance Methods
commands()
click to toggle source
# File lib/dotfu.rb, line 43 def commands spec = Gem::Specification.find_by_name("dotfu") return Dir["#{spec.full_gem_path}/commands/*"] end
config_user()
click to toggle source
what does the config say our user is?
# File lib/dotfu.rb, line 16 def config_user if !instance_variables.include? "@config_user" if installed? output = `git config github.user`.chomp! if output.empty? @config_user = nil else @config_user = output end end end return @config_user end
installed?()
click to toggle source
Is git installed in the system?
# File lib/dotfu.rb, line 32 def installed? if !@git_installed results = ENV["PATH"].split(":").map do |path| File.exist?("#{path}/git") end @git_installed = results.include? true end return @git_installed end