Class: Gitlab::BitbucketImport::WikiFormatter
- Inherits:
-
Object
- Object
- Gitlab::BitbucketImport::WikiFormatter
- Defined in:
- lib/gitlab/bitbucket_import/wiki_formatter.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #disk_path ⇒ Object
- #full_path ⇒ Object
- #import_url ⇒ Object
-
#initialize(project) ⇒ WikiFormatter
constructor
A new instance of WikiFormatter.
Constructor Details
#initialize(project) ⇒ WikiFormatter
Returns a new instance of WikiFormatter.
8 9 10 |
# File 'lib/gitlab/bitbucket_import/wiki_formatter.rb', line 8 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
6 7 8 |
# File 'lib/gitlab/bitbucket_import/wiki_formatter.rb', line 6 def project @project end |
Instance Method Details
#disk_path ⇒ Object
12 13 14 |
# File 'lib/gitlab/bitbucket_import/wiki_formatter.rb', line 12 def disk_path project.wiki.disk_path end |
#full_path ⇒ Object
16 17 18 |
# File 'lib/gitlab/bitbucket_import/wiki_formatter.rb', line 16 def full_path project.wiki.full_path end |
#import_url ⇒ Object
20 21 22 |
# File 'lib/gitlab/bitbucket_import/wiki_formatter.rb', line 20 def import_url project.import_url.sub(/\.git\z/, ".git/wiki") end |