Sha256: 032cfd45e760c3e3d190f84d6a7624652c62d7737d8d00842a588d7c6377c001
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
require 'grit' module Blazing module Base def config @config ||= Blazing::Config.parse end def log(type, message) @logger ||= Blazing::Logger.new @logger.log(type, message) end def report @logger.report end # # Helper that wraps exitstatus of cli stuff # def exit_status @exit_status || $?.exitstatus end # # Try to read the default remote # def repository_url Grit::Repo.new(Dir.pwd).config['remote.origin.url'] || 'user@host:/some/path' end # # Return true if a Gemfile exists in pwd # def gemfile_present? File.exists? 'Gemfile' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.0.16 | lib/blazing/base.rb |
blazing-0.0.15 | lib/blazing/base.rb |