From d7634a865366cd7b86ff12ef1dc75380d5e46374 Mon Sep 17 00:00:00 2001 From: rkiel Date: Sat, 6 Jun 2015 07:40:04 -0400 Subject: [PATCH] more code cleanup --- lib/feature/base.rb | 8 -------- lib/feature/branch.rb | 8 ++++++++ lib/feature/rebase.rb | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/feature/base.rb b/lib/feature/base.rb index efc4762..2819407 100644 --- a/lib/feature/base.rb +++ b/lib/feature/base.rb @@ -14,14 +14,6 @@ module Feature @argv = argv end - def valid? - true - end - - def help - exit - end - end end diff --git a/lib/feature/branch.rb b/lib/feature/branch.rb index ffc308d..38ebbc9 100644 --- a/lib/feature/branch.rb +++ b/lib/feature/branch.rb @@ -3,6 +3,14 @@ require_relative './base' module Feature class Branch < Feature::Base + def valid? + true + end + + def help + exit + end + def execute run_cmd "git branch" end diff --git a/lib/feature/rebase.rb b/lib/feature/rebase.rb index d042d10..1ff918f 100644 --- a/lib/feature/rebase.rb +++ b/lib/feature/rebase.rb @@ -3,7 +3,6 @@ require_relative './base' module Feature class Rebase < Feature::Base - def valid? argv.size == 1 end