Module: RSCM

Defined in:
lib/rscm/path_converter.rb,
lib/rscm/base.rb,
lib/rscm/parser.rb,
lib/rscm/scm/cvs.rb,
lib/rscm/tempdir.rb,
lib/rscm/version.rb,
lib/rscm/difftool.rb,
lib/rscm/platform.rb,
lib/rscm/revision.rb,
lib/rscm/revisions.rb,
lib/rscm/scm/darcs.rb,
lib/rscm/scm/mooky.rb,
lib/rscm/line_editor.rb,
lib/rscm/command_line.rb,
lib/rscm/scm/monotone.rb,
lib/rscm/scm/perforce.rb,
lib/rscm/revision_file.rb,
lib/rscm/scm/clearcase.rb,
lib/rscm/scm/star_team.rb,
lib/rscm/scm/subversion.rb,
lib/rscm/revision_poller.rb,
lib/rscm/scm/cvs_log_parser.rb,
lib/rscm/abstract_log_parser.rb,
lib/rscm/scm/darcs_log_parser.rb,
lib/rscm/scm/monotone_log_parser.rb,
lib/rscm/scm/subversion_log_parser.rb

Overview

Utility for converting between win32 and cygwin paths. Does nothing on *nix.

Defined Under Namespace

Modules: CommandLine, Difftool, LineEditor, PathConverter, Platform, RevisionPoller, VERSION Classes: AbstractLogParser, Base, ClearCase, Cvs, CvsLogParser, Darcs, DarcsLogParser, Monotone, MonotoneLogParser, Mooky, Parser, Perforce, Revision, RevisionFile, Revisions, StarTeam, Subversion, SubversionLogEntryParser, SubversionLogParser

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_temp_dir(suffix = "", basedir = File.dirname(__FILE__) + "/../../target") ⇒ Object



9
10
11
12
13
14
15
# File 'lib/rscm/tempdir.rb', line 9

def new_temp_dir(suffix="", basedir=File.dirname(__FILE__) + "/../../target")
  identifier = identifier.to_s
  identifier.gsub!(/\(|:|\)/, '_')
  dir = "#{basedir}/temp_#{identifier}_#{Time.new.to_i}#{suffix}"
  FileUtils.mkdir_p(dir)
  dir
end

Instance Method Details

#method_nameObject



5
6
7
# File 'lib/rscm/tempdir.rb', line 5

def method_name
  /\`([^\']+)\'/.match(caller.first)[1]
end