Class: ReplacerBot::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/replacer_bot/cli.rb

Instance Method Summary collapse

Instance Method Details

#dry_runObject



18
19
20
21
# File 'lib/replacer_bot/cli.rb', line 18

def dry_run
  r = Replacer.new
  r.tweet dry_run: true, chatty: true
end

#tweetObject



12
13
14
15
# File 'lib/replacer_bot/cli.rb', line 12

def tweet
  r = Replacer.new
  r.tweet chatty: true
end

#versionObject



6
7
8
# File 'lib/replacer_bot/cli.rb', line 6

def version
  puts "replacer version #{VERSION}"
end