Class: RIM::Command::Upload
- Inherits:
-
RIM::Command
- Object
- RIM::Command
- RIM::Command::Upload
- Includes:
- Manifest
- Defined in:
- lib/rim/command/upload.rb
Instance Method Summary collapse
-
#initialize(opts) ⇒ Upload
constructor
A new instance of Upload.
- #invoke ⇒ Object
Methods included from Manifest
#parse_manifest, #read_manifest
Constructor Details
#initialize(opts) ⇒ Upload
Returns a new instance of Upload.
12 13 14 15 16 17 18 19 |
# File 'lib/rim/command/upload.rb', line 12 def initialize(opts) @review = true opts. = "Usage: rim upload <local_module_path>" opts.description = "Upload changes from rim module synchronized to <local_module_path> 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 |
Instance Method Details
#invoke ⇒ Object
21 22 23 24 25 26 |
# File 'lib/rim/command/upload.rb', line 21 def invoke() helper = UploadHelper.new(project_git_dir, @review, @logger) helper.modules_from_paths(ARGV) helper.check_arguments helper.upload end |