class Slack::Emogen::CLI

Public Instance Methods

do_run() click to toggle source
# File lib/slack/emogen/cli.rb, line 12
def do_run
  config = Slack::Emogen::Config.find_or_create!
  image_path = File.expand_path(options[:image])
  emoji_image = Slack::Emogen::Image.resize image_path
  Slack::Emogen::Register.new(config, emoji_image, options[:key]).post!
end