lib/origen/revision_control/base.rb in origen-0.60.7 vs lib/origen/revision_control/base.rb in origen-0.60.8

- old
+ new

@@ -17,18 +17,17 @@ # Returns a pointer to the local location (a Pathname object) attr_reader :local # Method to use by Origen::RemoteManager to handle fetching a remote file attr_reader :remotes_method - # rubocop:disable Lint/UnusedMethodArgument - # All revision control instances represent a remote server mapping # to a local directory, :remote and :local options are required def initialize(options = {}) unless options[:remote] && options[:local] fail ':remote and :local options must be supplied when instantiating a new RevisionControl object' end + @remote = Pathname.new(options[:remote]) @local = Pathname.new(options[:local]).expand_path @remotes_method = :checkout initialize_local_dir(options) end @@ -204,11 +203,9 @@ # Returns true if the revision controller object uses Subversion def svn? is_a?(Subversion) # :-) end alias_method :subversion?, :svn? - - # rubocop:enable Lint/UnusedMethodArgument private def clean_path(path = nil, options = {}) path, options = nil, path if path.is_a?(Hash)