lib/docman/docroot_config.rb in docman-0.0.43 vs lib/docman/docroot_config.rb in docman-0.0.44

- old
+ new

@@ -77,15 +77,18 @@ def info_by(name) @names[name] end - def states_dependin_on(name, version) + def project(name) raise "There is no project with name '#{name}' exists in config" unless @names.has_key? name + @names[name] + end + def states_dependin_on(name, version) states = {} - @names[name].states.each do |state, info| + project(name).states.each do |state, info| states[state] = info if info['version'] == version end states end @@ -93,9 +96,13 @@ Digest::MD5.hexdigest(Marshal::dump(@raw_infos)) end def root_path @root['fuil_build_path'] + end + + def deploy_target_name + @deploy_target.name end end end \ No newline at end of file