Class: Playit::Services::Governance

Inherits:
Object
  • Object
show all
Defined in:
lib/playit/services/governance.rb

Class Method Summary collapse

Class Method Details

.startObject



9
10
11
# File 'lib/playit/services/governance.rb', line 9

def start
  puts '[INFO] Start governance...'
end

.stopObject



13
14
15
# File 'lib/playit/services/governance.rb', line 13

def stop
  puts '[INFO] Stop governance...'
end

.topicsObject

Display the governance topics



20
21
22
23
24
25
26
27
28
# File 'lib/playit/services/governance.rb', line 20

def topics
  puts '[INFO] Getting topics...'
  url = "#{Playit.config.attributes["governance"]}/getTopics"
  open(url) { |f|
    f.each_line {
        |line| puts line
    }
  }
end