Class: Caramelize::ContentTransferer
- Inherits:
-
Object
- Object
- Caramelize::ContentTransferer
- Defined in:
- lib/caramelize/content_transferer.rb
Constant Summary collapse
- DEFAULT_GOLLUM_HOME_TITLE =
'Home'- DEFAULT_AUTHOR_NAME =
'Caramelize'- DEFAULT_AUTHOR_EMAIL =
'[email protected]'
Instance Attribute Summary collapse
-
#input_wiki ⇒ Object
readonly
Returns the value of attribute input_wiki.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(input_wiki, options) ⇒ ContentTransferer
constructor
A new instance of ContentTransferer.
Constructor Details
#initialize(input_wiki, options) ⇒ ContentTransferer
Returns a new instance of ContentTransferer.
20 21 22 23 24 25 26 |
# File 'lib/caramelize/content_transferer.rb', line 20 def initialize(input_wiki, ) @input_wiki = input_wiki = [:default_author] = .fetch(:default_author, 'Caramelize') [:markup] = target_markup end |
Instance Attribute Details
#input_wiki ⇒ Object (readonly)
Returns the value of attribute input_wiki.
14 15 16 |
# File 'lib/caramelize/content_transferer.rb', line 14 def input_wiki @input_wiki end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
14 15 16 |
# File 'lib/caramelize/content_transferer.rb', line 14 def end |
Instance Method Details
#execute ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/caramelize/content_transferer.rb', line 28 def execute input_wiki. commit_history if verbose? migrate_markup_of_latest_revisions create_overview_page_of_namespaces if [:create_namespace_overview] rename_home_page if [:home_page_title] end |