module LatestCommand

Specifies the version command rubocop:disable Metrics/MethodLength

Public Class Methods

included(thor) click to toggle source
# File lib/plugins/commands/latest_command.rb, line 6
  def self.included(thor)
    thor.class_eval do
      long_desc <<-LONGDESC

Pull changes from the main branch into current branch

The current feature branch will be rebased on top of any changes found on the main branch.

      LONGDESC

      descf "latest", "[MAIN_BRANCH]",
            "Pull changes from the main branch into current branch"
      def latest(main_branch = Conf.vcs.main_branch)
        inf "\nGETTING LATEST CHANGES\n"
        vcs.latest_changes main_branch
      end
    end
  end

Public Instance Methods

latest(main_branch = Conf.vcs.main_branch) click to toggle source
# File lib/plugins/commands/latest_command.rb, line 18
def latest(main_branch = Conf.vcs.main_branch)
  inf "\nGETTING LATEST CHANGES\n"
  vcs.latest_changes main_branch
end