Module: BluePrinter
- Defined in:
- lib/blue_printer.rb,
lib/blue_printer/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- XCODE_TEMPLATE_PATH =
File.join("Library", "Developer", "Xcode", "Templates")
- TEMPLATE_DIR =
File.join(File.('~'), XCODE_TEMPLATE_PATH)
- TEMPLATE_NAME =
"Clean Swift VIP.xctemplate"- TEMPLATE_NAME_TESTS =
"Clean Swift Tests.xctemplate"- VERSION =
"0.1.5"
Class Method Summary collapse
Class Method Details
.move_to_xcode_template_directory ⇒ Object
16 17 18 19 20 |
# File 'lib/blue_printer.rb', line 16 def self.move_to_xcode_template_directory FileUtils.mkdir_p TEMPLATE_DIR FileUtils.copy_entry File.join(root, TEMPLATE_NAME), File.join(TEMPLATE_DIR, TEMPLATE_NAME) FileUtils.copy_entry File.join(root, TEMPLATE_NAME_TESTS), File.join(TEMPLATE_DIR, TEMPLATE_NAME_TESTS) end |
.root ⇒ Object
12 13 14 |
# File 'lib/blue_printer.rb', line 12 def self.root File.dirname __dir__ end |