Class: Renuo::Cli::Commands::GithubReplace

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/commands/github_replace.rb

Instance Method Summary collapse

Instance Method Details

#run(args, opts) ⇒ Object



21
22
23
24
25
26
27
28
29
30
# File 'lib/renuo/cli/commands/github_replace.rb', line 21

def run(args, opts)
  validate_arguments args
  validate_options opts

  opts.projects.split(",").each do |repo|
    base = clone_and_checkout opts, repo
    find_and_replace args, repo, opts.files.split(",")
    create_pr opts, repo, base
  end
end