diff options
author | Carlos Goce <carlosgoce@gmail.com> | 2015-01-21 22:30:24 +0100 |
---|---|---|
committer | Carlos Goce <carlosgoce@gmail.com> | 2015-01-21 22:30:24 +0100 |
commit | 7af6ef60e145b344ea68cd31b5a639aba00ed91e (patch) | |
tree | 2bf756ddcbac3e4f044af4aa11ff36a7dcbefb97 | |
parent | fde532f840f782750e891648b912094ff6eef4b4 (diff) | |
download | pdf-calendars-7af6ef60e145b344ea68cd31b5a639aba00ed91e.tar.gz pdf-calendars-7af6ef60e145b344ea68cd31b5a639aba00ed91e.tar.bz2 pdf-calendars-7af6ef60e145b344ea68cd31b5a639aba00ed91e.zip |
Add output folder
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | calendar.rb | 6 | ||||
-rw-r--r-- | output/.gitkeep | 0 |
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 |