class Pakman::Opts
Public Instance Methods
config_path()
click to toggle source
# File lib/pakman/cli/opts.rb, line 54 def config_path @config_path || '~/.pak' end
config_path=(value)
click to toggle source
# File lib/pakman/cli/opts.rb, line 50 def config_path=(value) @config_path = value end
fetch?()
click to toggle source
# File lib/pakman/cli/opts.rb, line 35 def fetch? @fetch_uri.nil? ? false : true end
fetch_uri()
click to toggle source
# File lib/pakman/cli/opts.rb, line 31 def fetch_uri @fetch_uri || '-fetch uri required-' end
fetch_uri=(value)
click to toggle source
# File lib/pakman/cli/opts.rb, line 27 def fetch_uri=(value) @fetch_uri = value end
generate=(value)
click to toggle source
# File lib/pakman/cli/opts.rb, line 17 def generate=(value) @generate = value end
generate?()
click to toggle source
# File lib/pakman/cli/opts.rb, line 21 def generate? return false if @generate.nil? # default generate flag is false @generate == true end
list=(value)
click to toggle source
# File lib/pakman/cli/opts.rb, line 7 def list=(value) @list = value end
list?()
click to toggle source
# File lib/pakman/cli/opts.rb, line 11 def list? return false if @list.nil? # default list flag is false @list == true end
manifest()
click to toggle source
fix:/todo: use a different default manifest
# File lib/pakman/cli/opts.rb, line 45 def manifest @manifest || 's6.txt' end
manifest=(value)
click to toggle source
# File lib/pakman/cli/opts.rb, line 40 def manifest=(value) @manifest = value end
output_path()
click to toggle source
# File lib/pakman/cli/opts.rb, line 63 def output_path @output_path || '.' end
output_path=(value)
click to toggle source
# File lib/pakman/cli/opts.rb, line 59 def output_path=(value) @output_path = value end