Class: Pluto::Opts
- Inherits:
-
Object
- Object
- Pluto::Opts
- Defined in:
- lib/pluto/cli/opts.rb
Instance Method Summary collapse
- #config_path ⇒ Object
- #config_path=(value) ⇒ Object
- #manifest ⇒ Object
- #manifest=(value) ⇒ Object
- #output_path ⇒ Object
- #output_path=(value) ⇒ Object
- #verbose=(value) ⇒ Object
- #verbose? ⇒ Boolean
Instance Method Details
#config_path ⇒ Object
25 26 27 |
# File 'lib/pluto/cli/opts.rb', line 25 def config_path @config_path || '~/.pluto' end |
#config_path=(value) ⇒ Object
21 22 23 |
# File 'lib/pluto/cli/opts.rb', line 21 def config_path=(value) @config_path = value end |
#manifest ⇒ Object
9 10 11 |
# File 'lib/pluto/cli/opts.rb', line 9 def manifest @manifest || 'blank.txt' ## todo - just return blank (no .txt extension - possible?) end |
#manifest=(value) ⇒ Object
5 6 7 |
# File 'lib/pluto/cli/opts.rb', line 5 def manifest=(value) @manifest = value end |
#output_path ⇒ Object
34 35 36 |
# File 'lib/pluto/cli/opts.rb', line 34 def output_path @output_path || '.' end |
#output_path=(value) ⇒ Object
30 31 32 |
# File 'lib/pluto/cli/opts.rb', line 30 def output_path=(value) @output_path = value end |
#verbose=(value) ⇒ Object
13 14 15 |
# File 'lib/pluto/cli/opts.rb', line 13 def verbose=(value) @verbose = true # note: always assumes true for now; default is false end |
#verbose? ⇒ Boolean
17 18 19 |
# File 'lib/pluto/cli/opts.rb', line 17 def verbose? @verbose || false end |