lib/cocoapods-playgrounds/generate.rb in cocoapods-playgrounds-0.0.3 vs lib/cocoapods-playgrounds/generate.rb in cocoapods-playgrounds-0.1.0
- old
+ new
@@ -6,10 +6,10 @@
TEMPLATE_DIR = Pathname.new('Library/Xcode/Templates/File Templates/Source/Playground with Platform Choice.xctemplate')
TEMPLATE_NAME = Pathname.new('___FILEBASENAME___.playground')
def initialize(platform)
@template = self.class.dir_for_platform(platform)
- fail "Could not find template for #{platform}" if @template.nil?
+ raise "Could not find template for #{platform}" if @template.nil?
@template += TEMPLATE_NAME
end
def generate(name)
FileUtils.cp_r(@template, "#{name}.playground")