Refactor CLI::InternalAuditModifiedCasks.
				
					
				
			This commit is contained in:
		
							parent
							
								
									326c425dc6
								
							
						
					
					
						commit
						6acca4e09a
					
				@ -8,9 +8,12 @@ module Hbc
 | 
				
			|||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      def self.run(*args)
 | 
					      def self.run(*args)
 | 
				
			||||||
        commit_range = commit_range(args)
 | 
					        new(*args).run
 | 
				
			||||||
        cleanup = args.any? { |a| a =~ /^-+c(leanup)?$/i }
 | 
					      end
 | 
				
			||||||
        new(commit_range, cleanup: cleanup).run
 | 
					
 | 
				
			||||||
 | 
					      def initialize(*args)
 | 
				
			||||||
 | 
					        @commit_range = self.class.commit_range(args)
 | 
				
			||||||
 | 
					        @cleanup = args.any? { |a| a =~ /^-+c(leanup)?$/i }
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      def self.commit_range(args)
 | 
					      def self.commit_range(args)
 | 
				
			||||||
@ -41,11 +44,6 @@ module Hbc
 | 
				
			|||||||
        EOS
 | 
					        EOS
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      def initialize(commit_range, cleanup: false)
 | 
					 | 
				
			||||||
        @commit_range = commit_range
 | 
					 | 
				
			||||||
        @cleanup = cleanup
 | 
					 | 
				
			||||||
      end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      attr_reader :commit_range
 | 
					      attr_reader :commit_range
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      def cleanup?
 | 
					      def cleanup?
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user