class XMigra::SourceTreeInitializer::ConfigInfo
Attributes
dbinfo[R]
root_path[R]
Public Class Methods
new(root_path)
click to toggle source
# File lib/xmigra/source_tree_initializer.rb, line 8 def initialize(root_path) @root_path = Pathname(root_path) @dbinfo = {} @steps_after_dbinfo_creation = [] @created_files = [] end
Public Instance Methods
after_dbinfo_creation(&blk)
click to toggle source
# File lib/xmigra/source_tree_initializer.rb, line 25 def after_dbinfo_creation(&blk) @steps_after_dbinfo_creation << blk end
created_file!(fpath)
click to toggle source
# File lib/xmigra/source_tree_initializer.rb, line 21 def created_file!(fpath) @created_files << Pathname(fpath) end
created_files()
click to toggle source
# File lib/xmigra/source_tree_initializer.rb, line 17 def created_files @created_files.dup end
run_steps_after_dbinfo_creation!()
click to toggle source
# File lib/xmigra/source_tree_initializer.rb, line 29 def run_steps_after_dbinfo_creation! @steps_after_dbinfo_creation.each do |step| step.call end end