Refactored custom post type file to use singleton pattern and use constants
Renamed methods in builder_module to make easier to understand
Renamed file_or_dir_delete to remove_file_or_dir_if_no in builder_module to make easier to understand
Changed tag_close = '{{{/' + tag_var + '}}}' to tag_close = '{{{\/' + tag_var + '}}}' to escape regex delimiter
Added set_tags method to remove duplicate code
Changed keep_feature_if_yes to compare against yes and keep_feature_if_no to compare against no
Added back in set_tags method name
Swapped function names because they were doing the wrong thing
Updated logic of methods to match new name
Updated method calls in cli_interface.rb to reflect new method names and changed no of custom_post_types_create to custom_post_types_create_if_yes
Fixed wrong if statement end in custom_post_types_create_if_yes
Merge pull request #5 from oomphinc/cpt-refactor

Cpt refactor