Module: Show

Defined in:
lib/skills/show.rb

Instance Method Summary collapse

Instance Method Details

#credentials(service = nil) ⇒ Object

Show the credentials for a particular service



20
21
22
23
24
# File 'lib/skills/show.rb', line 20

def credentials(service = nil)
  credentials = brain.credentials
  credentials = credentials[service.to_sym] if service
  puts credentials.to_yaml
end

#setting(name) ⇒ Object

Show a given goat setting



13
14
15
# File 'lib/skills/show.rb', line 13

def setting(name)
  puts brain.settings[name.to_sym].to_yaml
end

#settingsObject

Show all goat settings



6
7
8
# File 'lib/skills/show.rb', line 6

def settings
  puts brain.settings.to_yaml
end