Class: SlackMessaging::DefaultPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/slack_messaging/config.rb

Class Method Summary collapse

Class Method Details

.configObject



7
8
9
# File 'lib/slack_messaging/config.rb', line 7

def config
  File.join(self.home,'.slack_messaging.yml')
end

.homeObject



11
12
13
# File 'lib/slack_messaging/config.rb', line 11

def home
  ENV['HOME'] ? ENV['HOME'] : "."
end