class Object

Public Instance Methods

expand_config_args( args ) click to toggle source

end

move to pluto for reuse (e.g. in rakefile)
# File lib/pluto/cli/main.rb, line 37
def expand_config_args( args )
  ## todo/check:  rename method?? e.g. check_config_args
  ##              or  auto_complete_config_ars similar? why? why not??

  if args.empty?      ## no args? args.length == 0
    ['planet.ini']    #    add default planet.ini for convenience
  else
    args   # pass through as-is
  end
end
load_config( name ) click to toggle source

begin

move to pluto for reuse (e.g. in rakefile)
# File lib/pluto/cli/main.rb, line 27
def load_config( name )
  config = INI.load_file( name )
  config
end