class Toolshed::Commands::PushBranch
Public Class Methods
cli_options()
click to toggle source
# File lib/toolshed/commands/push_branch.rb, line 9 def self.cli_options { banner: 'Usage: push_branch [options]', options: { force_command: { short_on: '-f', default: true }, branch_name: { short_on: '-b' } } } end
new(options = {})
click to toggle source
Calls superclass method
Toolshed::Commands::Base::new
# File lib/toolshed/commands/push_branch.rb, line 5 def initialize(options = {}) super(options) end
Public Instance Methods
execute(args, options = {})
click to toggle source
# File lib/toolshed/commands/push_branch.rb, line 24 def execute(args, options = {}) Toolshed.logger.info "Running toolshed push_branch with #{options.inspect}" branch = Toolshed::Git::Branch.new(options) branch.push Toolshed.die end