gboom 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gboom +4 -2
- data/lib/gboom/version.rb +1 -1
- metadata +1 -1
data/bin/gboom
CHANGED
@@ -35,8 +35,10 @@ command :add do |c|
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# grab credentials from env or global gitfile
|
38
|
-
|
39
|
-
|
38
|
+
env_username = ENV['GITHUB_USERNAME']
|
39
|
+
env_password = ENV['GITHUB_PASSWORD']
|
40
|
+
username = env_username.nil? || env_username.empty? ? `git config --global --get github.user` : env_username
|
41
|
+
password = env_password.nil? || env_password.empty ? `git config --global --get github.password` : env_password
|
40
42
|
|
41
43
|
raise "You probably didn't read the instructions did you? You can't just skip to the good stuff, setup your github credentials. Noob." if username.empty? || password.empty?
|
42
44
|
github = Github.new basic_auth: "#{username.strip}:#{password.strip}"
|
data/lib/gboom/version.rb
CHANGED