Method: R10K::Module::SVN#initialize

Defined in:
lib/r10k/module/svn.rb

#initialize(name, dirname, opts, environment = nil) ⇒ SVN

Returns a new instance of SVN.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/r10k/module/svn.rb', line 43

def initialize(name, dirname, opts, environment=nil)
  super
  setopts(opts, {
    # Standard option interface
    :source   => :url,
    :version  => :expected_revision,
    :type     => ::R10K::Util::Setopts::Ignore,

    # Type-specific options
    :svn      => :url,
    :rev      => :expected_revision,
    :revision => :expected_revision,
    :username => :self,
    :password => :self
  }, :raise_on_unhandled => false)

  @working_dir = R10K::SVN::WorkingDir.new(@path, :username => @username, :password => @password)
end