Class: Manman::Opts
- Inherits:
-
Object
- Object
- Manman::Opts
- Defined in:
- lib/manman/opts.rb
Instance Method Summary collapse
- #base ⇒ Object
- #base=(value) ⇒ Object
- #encrypt_callback ⇒ Object
- #encrypt_callback=(value) ⇒ Object
- #env ⇒ Object
- #env=(value) ⇒ Object
- #filter_callback ⇒ Object
-
#filter_callback=(value) ⇒ Object
NB: for now pass in an obj, that is, self in the future pass in proc? or something else?? to make it more configurable??.
-
#headers ⇒ Object
fix/todo: also make it into a command line option!!.
-
#headers=(value) ⇒ Object
extra headers for manifest - headers get ignored (assumed NOT to be files that get md5 checksum/digest/hash calculated).
- #output ⇒ Object
- #output=(value) ⇒ Object
- #release ⇒ Object
- #release=(value) ⇒ Object
- #template ⇒ Object
- #template=(value) ⇒ Object
- #valid ⇒ Object
- #valid=(value) ⇒ Object
Instance Method Details
#base ⇒ Object
48 49 50 |
# File 'lib/manman/opts.rb', line 48 def base @base || './paket' end |
#base=(value) ⇒ Object
44 45 46 |
# File 'lib/manman/opts.rb', line 44 def base=(value) @base = value end |
#encrypt_callback ⇒ Object
36 37 38 |
# File 'lib/manman/opts.rb', line 36 def encrypt_callback @encrypt # NB: has no default; returns nil if not set end |
#encrypt_callback=(value) ⇒ Object
32 33 34 |
# File 'lib/manman/opts.rb', line 32 def encrypt_callback=(value) @encrypt = value end |
#env ⇒ Object
84 85 86 |
# File 'lib/manman/opts.rb', line 84 def env @env # NB: has no default; required arg end |
#env=(value) ⇒ Object
80 81 82 |
# File 'lib/manman/opts.rb', line 80 def env=(value) @env = value end |
#filter_callback ⇒ Object
28 29 30 |
# File 'lib/manman/opts.rb', line 28 def filter_callback @filter # NB: has no default; returns nil if not set end |
#filter_callback=(value) ⇒ Object
NB: for now pass in an obj, that is, self
in the future pass in proc? or something else?? to make it more configurable??
24 25 26 |
# File 'lib/manman/opts.rb', line 24 def filter_callback=(value) @filter = value end |
#headers ⇒ Object
fix/todo:
also make it into a command line option!!
15 16 17 18 |
# File 'lib/manman/opts.rb', line 15 def headers # NB: return value is supposed to be an array of strings @headers || [] end |
#headers=(value) ⇒ Object
extra headers for manifest
- headers get ignored (assumed NOT to be files that get md5 checksum/digest/hash calculated)
7 8 9 10 |
# File 'lib/manman/opts.rb', line 7 def headers=(value) # NB: value is supposed to be an array of strings @headers = value end |
#output ⇒ Object
66 67 68 |
# File 'lib/manman/opts.rb', line 66 def output @output || 'paket.txt' end |
#output=(value) ⇒ Object
62 63 64 |
# File 'lib/manman/opts.rb', line 62 def output=(value) @output = value end |
#release ⇒ Object
75 76 77 |
# File 'lib/manman/opts.rb', line 75 def release @release # NB: has no default; required arg end |
#release=(value) ⇒ Object
71 72 73 |
# File 'lib/manman/opts.rb', line 71 def release=(value) @release = value end |
#template ⇒ Object
57 58 59 |
# File 'lib/manman/opts.rb', line 57 def template @template || 'paket.txt.erb' end |
#template=(value) ⇒ Object
53 54 55 |
# File 'lib/manman/opts.rb', line 53 def template=(value) @template = value end |
#valid ⇒ Object
93 94 95 |
# File 'lib/manman/opts.rb', line 93 def valid @valid # NB: has no default; required arg end |
#valid=(value) ⇒ Object
89 90 91 |
# File 'lib/manman/opts.rb', line 89 def valid=(value) @valid = value end |