Class: Subcheat::Svn
Defined Under Namespace
Modules: Cli
Instance Attribute Summary collapse
-
#arguments ⇒ Object
The arguments passed to the subcommand.
Instance Method Summary collapse
-
#base_url ⇒ Object
Shortcut method to the base url for the current project in the current repo.
-
#initialize(arguments) ⇒ Svn
constructor
A new instance of Svn.
Methods included from Cli
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
#arguments ⇒ Object
The arguments passed to the subcommand
5 6 7 |
# File 'lib/subcheat/svn.rb', line 5 def arguments @arguments end |
Instance Method Details
#base_url ⇒ Object
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 |