aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Goce <carlosgoce@gmail.com>2015-01-21 22:30:24 +0100
committerCarlos Goce <carlosgoce@gmail.com>2015-01-21 22:30:24 +0100
commit7af6ef60e145b344ea68cd31b5a639aba00ed91e (patch)
tree2bf756ddcbac3e4f044af4aa11ff36a7dcbefb97
parentfde532f840f782750e891648b912094ff6eef4b4 (diff)
downloadpdf-calendars-7af6ef60e145b344ea68cd31b5a639aba00ed91e.tar.gz
pdf-calendars-7af6ef60e145b344ea68cd31b5a639aba00ed91e.tar.bz2
pdf-calendars-7af6ef60e145b344ea68cd31b5a639aba00ed91e.zip
Add output folder
-rw-r--r--.gitignore1
-rw-r--r--calendar.rb6
-rw-r--r--output/.gitkeep0
3 files changed, 6 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..39d7579
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+output/*.pdf \ No newline at end of file
diff --git a/calendar.rb b/calendar.rb
index 84bd30f..8ebe619 100644
--- a/calendar.rb
+++ b/calendar.rb
@@ -1,5 +1,9 @@
require 'rubygems'
require 'bundler/setup'
-
require 'prawn'
+output_folder = 'output'
+
+Prawn::Document.generate("#{output_folder}/calendar.pdf") do
+ text 'Hello World'
+end \ No newline at end of file
diff --git a/output/.gitkeep b/output/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/output/.gitkeep