class Slackup::Stars

Public Instance Methods

list() click to toggle source
# File lib/slackup/stars.rb, line 3
def list
  client.stars_list(count: "1000", page: "1")
end
Also aliased as: stars
stars()
Alias for: list
write!() click to toggle source
# File lib/slackup/stars.rb, line 18
def write!
  return unless write_stars?
  with_messages "stars", list do |messages|
    File.open(backup_filename("stars"), "w")  do |f|
      f.write(serialize(messages))
    end
  end
end
write_stars?() click to toggle source
# File lib/slackup/stars.rb, line 8
def write_stars?
  if config.fetch("stars", true)
    p [name, :stars, "Writing"]
    true
  else
    p [name, :stars, "Skipping"]
    false
  end
end