class Ninny::Commands::OutputDatedBranch
Attributes
branch_type[R]
Public Class Methods
new(options)
click to toggle source
# File lib/ninny/commands/output_dated_branch.rb, line 10 def initialize(options) @branch_type = options[:branch_type] || Git::STAGING_PREFIX @options = options end
Public Instance Methods
execute(output: $stdout)
click to toggle source
# File lib/ninny/commands/output_dated_branch.rb, line 15 def execute(output: $stdout) output.puts Ninny.git.latest_branch_for(branch_type) end