Class: Subcheat::Svn

Inherits:
Object
  • Object
show all
Includes:
Cli
Defined in:
lib/subcheat/svn.rb

Defined Under Namespace

Modules: Cli

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cli

#attr, #info, #log

Constructor Details

#initialize(arguments) ⇒ Svn

Returns a new instance of Svn.



7
8
9
# File 'lib/subcheat/svn.rb', line 7

def initialize(arguments)
  @arguments = arguments
end

Instance Attribute Details

#argumentsObject

The arguments passed to the subcommand



5
6
7
# File 'lib/subcheat/svn.rb', line 5

def arguments
  @arguments
end

Instance Method Details

#base_urlObject

Shortcut method to the base url for the current project in the current repo.



12
13
14
# File 'lib/subcheat/svn.rb', line 12

def base_url
  attr('URL').split(/branches|tags|trunk/).first
end