Class: Rake::Leaves::SubversionTask

Inherits:
TaskLib
  • Object
show all
Defined in:
lib/leaves/vcs/subversion.rb

Instance Method Summary collapse

Methods inherited from TaskLib

#upaste

Constructor Details

#initialize {|_self| ... } ⇒ SubversionTask

Returns a new instance of SubversionTask.

Yields:

  • (_self)

Yield Parameters:



11
12
13
14
# File 'lib/leaves/vcs/subversion.rb', line 11

def initialize
  yield self if block_given?
  define
end

Instance Method Details

#defineObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/leaves/vcs/subversion.rb', line 16

def define
  namespace :svn do
    desc "Bring changes from the repository into the working copy."
    task :update do
      sh "svn update"
    end
    
    desc "Print the status of working copy files and directories."
    task :status do
      sh "svn status"
    end
    
    desc "Display local modifications in the working copy."
    task :diff do
      sh "svn diff"
    end
  end
  
  self
end