class Leg::Commands::Reset

Public Class Methods

name() click to toggle source
# File lib/leg/commands/reset.rb, line 4
def self.name
  "reset"
end
summary() click to toggle source
# File lib/leg/commands/reset.rb, line 8
def self.summary
  "Abort any saves in progress and checkout the top-most step."
end
usage() click to toggle source
# File lib/leg/commands/reset.rb, line 12
def self.usage
  ""
end

Public Instance Methods

run() click to toggle source
# File lib/leg/commands/reset.rb, line 19
def run
  needs! :config, :repo

  @git.reset!
end
setopts!(o) click to toggle source
# File lib/leg/commands/reset.rb, line 16
def setopts!(o)
end