class Leg::Commands::Step

Public Class Methods

name() click to toggle source
# File lib/leg/commands/step.rb, line 4
def self.name
  "step"
end
summary() click to toggle source
# File lib/leg/commands/step.rb, line 8
def self.summary
  "Select a step for editing."
end
usage() click to toggle source
# File lib/leg/commands/step.rb, line 12
def self.usage
  "<step-number>"
end

Public Instance Methods

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

  step_number = @args.first.to_i

  unless @git.checkout!(@args.first.to_i)
    output "Error: Step not found.\n"
    return false
  end
end
setopts!(o) click to toggle source
# File lib/leg/commands/step.rb, line 16
def setopts!(o)
end