require 'rim/command/command' require 'rim/processor' require 'rim/upload_helper' module RIM module Command class Upload < Command include RIM::Manifest def initialize(opts) @review = true opts.banner = "Usage: rim upload " opts.description = "Upload changes from rim module synchronized to to remote repository." opts.on("-n", "--no-review", "Uploads without review. The changes will be pushed directly to the module's target branch.") do @review = false end end def invoke() helper = UploadHelper.new(project_git_dir, @review, @logger) helper.modules_from_paths(ARGV) helper.check_arguments helper.upload end end end end