Class: Pluto::Opts

Inherits:
Object
  • Object
show all
Defined in:
lib/pluto/cli/opts.rb

Instance Method Summary collapse

Instance Method Details

#config_pathObject



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

#manifestObject



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_pathObject



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

Returns:

  • (Boolean)


17
18
19
# File 'lib/pluto/cli/opts.rb', line 17

def verbose?
  @verbose || false
end