Sha256: fc18f42d03b5ada3687a21dea3ba7148e967008a419224b4aa395e8ae0877f50
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
module Reflection module Command class Base attr_accessor :options def self.run!(options) command = self.new(options) command.validate! if command.respond_to?(:validate!) command.run! end def initialize(new_options) self.options = new_options end def validate Reflection::Validations end def verify_that_target_is_not_a_repository(target_directory) if Repository.exists?(target_directory.path) Support.exit_with_error "The specified --directory is a repository. Reflection is afraid of breaking something, so it won't touch it. Pleace specify another one.." end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reflection-0.3.1 | lib/reflection/command/base.rb |
reflection-0.0.2 | lib/reflection/command/base.rb |