Sha256: 87c31f8ee5da352f8cefa0a8498cddd6233661d78ae1766b3494873f34bfeb1a

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'bundler/setup'

# require your gems as usual 
require 'require_all'
require 'trollop'
require_all 'lib'

opts = Trollop::options do
  opt :file_name, "File Name", :type => :string, :default => "dotgrid.pdf"
  opt :orientation, "Orientation of pages (portrait/landscape)", type: :string, default: "portrait"
  opt :page_types, "Types of pages desired: Types of pages desired: DotGrid, Planner, Grid, HorizontalRule, Checkerboard", type: :string, default: "Planner"
  opt :dot_weight, "Dot Weight", :type => :float, :default => 1.5
  opt :margin, "Border", :type => :float, :default => 0.0
  opt :page_size, "Page Size (LEGAL, LETTER)", :type => :string, :default => "LETTER"
  opt :grid_color, "Grid Color (RGB)", :type => :string, :default => "B3B3B3"
  opt :spacing, "Dot Spacing (mm)", :type => :integer, :default => 5
  opt :planner_color_1, "Planner Left and Footer color", type: :string, default: "CCCCCC"
  opt :planner_color_2, "Planner Right color", type: :string, default: "0099ff"
end

dot_grid_generator = DotGrid::Generator.new(opts).generate

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dot_grid-0.0.7 bin/dotgrid