Class: GistUpdater::Commands

Inherits:
Thor
  • Object
show all
Defined in:
lib/gist_updater/commands.rb

Overview

CLI Interface

Instance Method Summary collapse

Instance Method Details

#updateArray<Sawyer::Resource>

CLI Interface to update your Gist

Returns:

  • (Array<Sawyer::Resource>)

    Updated resource(s)



24
25
26
# File 'lib/gist_updater/commands.rb', line 24

def update
  Updater.new(options).update
end

#versionObject

CLI Interface to display version



32
33
34
# File 'lib/gist_updater/commands.rb', line 32

def version
  puts VERSION
end