module ReviewCommand
Specifies the version command rubocop:disable Metrics/MethodLength
Public Class Methods
included(thor)
click to toggle source
# File lib/plugins/commands/review_command.rb, line 6 def self.included(thor) thor.class_eval do long_desc <<-LONGDESC Creates and submits a code review on the current feature branch. The command executes the following steps before submitting the code review. 1. rad latest 2. rad build By doing this review ensures that a feature branche stay up-to-date and builds before it's submitted for review. Currently this is a basic git code review process, in the future rad review will integrate with GitHub and BitBucket to initiate and close pull requests. If you think integration with GitHub or BitBucket would be a good idea, let us know by telling us on: - Tell us on Twitter @ImaginateLabs - Come chat about it on our Gitter channel https://gitter.im/imaginatelabs/radial LONGDESC descf "review", "[-r]", "Creates and submits a code review" option :remote, desc: "Remote server to submit code review", aliases: "-r", default: Conf.vcs_code_review.remote def review inf "RUNNING: rad latest" invoke :latest inf "\nRUNNING: rad build" invoke :build inf "\nSUBMIT CODE REVIEW\n" vcs.submit_code_review options[:remote] end end end
Public Instance Methods
review()
click to toggle source
# File lib/plugins/commands/review_command.rb, line 39 def review inf "RUNNING: rad latest" invoke :latest inf "\nRUNNING: rad build" invoke :build inf "\nSUBMIT CODE REVIEW\n" vcs.submit_code_review options[:remote] end