Class: WikiService

Inherits:
Object
  • Object
show all
Includes:
AbstractWikiService, Madeleine::Automatic::Interceptor
Defined in:
app/models/wiki_service.rb

Constant Summary collapse

@@storage_path =
'./storage/'

Instance Attribute Summary

Attributes included from AbstractWikiService

#system, #webs

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AbstractWikiService

#authenticate, #create_web, #delete_web, #edit_web, #file_yard, #init_wiki_service, #read_page, #remove_orphaned_pages, #revise_page, #rollback_page, #setup, #setup?, #storage_path, #write_page

Constructor Details

#initializeWikiService

Returns a new instance of WikiService.



158
159
160
# File 'app/models/wiki_service.rb', line 158

def initialize
  init_wiki_service
end

Class Method Details

.clean_storageObject



142
143
144
# File 'app/models/wiki_service.rb', line 142

def clean_storage
  MadeleineServer.clean_storage(self)
end

.instanceObject



146
147
148
149
150
# File 'app/models/wiki_service.rb', line 146

def instance
  @madeleine ||= MadeleineServer.new(self)
  @system = @madeleine.system
  return @system
end

.snapshotObject



152
153
154
# File 'app/models/wiki_service.rb', line 152

def snapshot
  @madeleine.snapshot
end

.storage_pathObject



138
139
140
# File 'app/models/wiki_service.rb', line 138

def storage_path
  @@storage_path
end

.storage_path=(storage_path) ⇒ Object



134
135
136
# File 'app/models/wiki_service.rb', line 134

def storage_path=(storage_path)
  @@storage_path = storage_path
end