Sha256: 109928fd57a9dceeb13050516cb01d1b77bd001593f584307db112c9dcbc4f58
Contents?: true
Size: 794 Bytes
Versions: 8
Compression:
Stored size: 794 Bytes
Contents
require 'rubygems' require 'highline/import' module Socialcast module Gitx def protect_reserved_branches!(branch, mode) abort("Cannot #{mode} reserved branch") if Socialcast::Git::RESERVED_BRANCHES.include?(branch) end def run_cmd(cmd) HighLine.say "\n> <%= color('#{cmd.gsub("'", '')}', :red) %>" raise "#{cmd} failed" unless system cmd end def share(message, options = {}) return if ARGV.delete("--quiet") || ARGV.delete("-q") require 'socialcast' require 'socialcast/message' Socialcast::Message.configure_from_credentials Socialcast::Message.create options.merge(:body => message) say "Message has been shared" end end end require 'socialcast-git-extensions/git' require 'socialcast-git-extensions/github'
Version data entries
8 entries across 8 versions & 1 rubygems