Sha256: 57a201caea7eccf3f8ba82caa04c23a849e40d4c36e619e77e717df64d797b20
Contents?: true
Size: 444 Bytes
Versions: 9
Compression:
Stored size: 444 Bytes
Contents
# frozen_string_literal: true require_relative '../command' module Ninny module Commands class OutputDatedBranch < Ninny::Command attr_reader :branch_type def initialize(options) @branch_type = options[:branch_type] || Git::STAGING_PREFIX @options = options end def execute(input: $stdin, output: $stdout) output.puts Ninny.git.latest_branch_for(branch_type) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems