lib/neetob/cli/github/labels/update.rb in neetob-0.1.2 vs lib/neetob/cli/github/labels/update.rb in neetob-0.1.4

- old
+ new

@@ -7,21 +7,23 @@ module Neetob class CLI module Github module Labels class Update < Base - attr_accessor :apps, :sandbox, :old_name, :new_name + attr_accessor :apps, :sandbox, :old_name, :new_name, :all_neeto_repos - def initialize(apps, old_name, new_name, sandbox = false) + def initialize(apps, old_name, new_name, sandbox = false, all_neeto_repos = false) super() @apps = apps @sandbox = sandbox @old_name = old_name @new_name = new_name + @all_neeto_repos = all_neeto_repos end def run - matching_apps = find_all_matching_apps(apps, :github, sandbox) + check_for_apps_and_all_neeto_repos_option(apps, all_neeto_repos) + matching_apps = find_all_matching_apps(apps, :github, sandbox, false, all_neeto_repos) matching_apps.each do |app| ui.info("\n Updating label for #{app} repo \n") update_label!(app, old_name, new_name) end end