lib/neetob/cli/github/make_pr/compliance_fix.rb in neetob-0.1.5 vs lib/neetob/cli/github/make_pr/compliance_fix.rb in neetob-0.2.0
- old
+ new
@@ -7,22 +7,25 @@
module Neetob
class CLI
module Github
module MakePr
class ComplianceFix < Base
- attr_accessor :apps, :sandbox
+ attr_accessor :apps, :sandbox, :should_fix_nanos
- def initialize(apps, sandbox = false)
+ def initialize(apps, should_fix_nanos = false, sandbox = false)
super()
@apps = apps
@sandbox = sandbox
+ @should_fix_nanos = should_fix_nanos
end
def run
- matching_apps = find_all_matching_apps(apps, :github, sandbox)
+ matching_apps = should_fix_nanos ?
+ add_org_suffix(find_all_matching_gems) :
+ find_all_matching_apps(apps, :github, sandbox)
delete_and_create_temp_neetob_dir
matching_apps.each do |app|
- ui.info("\n Working on #{app} \n")
+ ui.info("\nWorking on #{app}\n")
begin
clone_app_in_tmp_dir(app)
check_and_delete_remote_branch(app)
bundle_install(app)
fix_neeto_audit(app)