Class: Gitius::Core
Instance Method Summary
collapse
Methods included from Helpers
#change_config, #client, #get_config, #repo, #token, #user
Instance Method Details
#config(key, value = nil) ⇒ Object
19
20
21
|
# File 'lib/gitius/core.rb', line 19
def config(key, value = nil)
value.nil? ? puts(get_config(key)) : change_config(key, value)
end
|
#version ⇒ Object
24
25
26
|
# File 'lib/gitius/core.rb', line 24
def version
puts "v#{VERSION}"
end
|
#whoami ⇒ Object
12
13
14
15
16
|
# File 'lib/gitius/core.rb', line 12
def whoami
puts user.name
rescue StandardError
puts 'Incorrect settings'
end
|