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.expand_path('~'), 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_directoryObject



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

.rootObject



12
13
14
# File 'lib/blue_printer.rb', line 12

def self.root
  File.dirname __dir__
end