Code Duplication    Length = 9-9 lines in 2 locations

lib/publican_creators/prepare.rb 2 locations

@@ 82-90 (lines=9) @@
79
  # @param [String] articles_dir_private contains the path to your private
80
  #                 articles_dir
81
  # @param [String] homework_dir_private contains the path to your homework dir.
82
  def self.targetdir_private(homework, articles_dir_private, homework_dir_private)
83
    home = Dir.home
84
    articles_dir = if homework == 'FALSE'
85
                     "#{home}/#{articles_dir_private}"
86
                   else
87
                     "#{home}/#{homework_dir_private}"
88
                   end
89
    return articles_dir
90
  end
91
end
92
@@ 66-74 (lines=9) @@
63
  #                 new Publication is a Report or not.
64
  # @param [String] reports_dir_business contains the directory to your reports
65
  # @param [String] articles_dir_bus represents the directory for your articles
66
  def self.targetdir_work(report, reports_dir_business, articles_dir_bus)
67
    home = Dir.home
68
    articles_dir = if report == 'TRUE'
69
                     "#{home}/#{reports_dir_business}"
70
                   else
71
                     "#{home}/#{articles_dir_bus}"
72
                   end
73
    return articles_dir
74
  end
75
76
  # Prepares the articles_dir for home environment
77
  # @param [String] homework contains true or false. If your present Publication