class DriveEnv::Cli::Config
Public Instance Methods
config()
click to toggle source
# File lib/drive_env/cli/config.rb, line 25 def config @config ||= DriveEnv::Config.load(options[:config]) end
list()
click to toggle source
# File lib/drive_env/cli/config.rb, line 20 def list puts YAML.dump(config) end
set(key, value)
click to toggle source
# File lib/drive_env/cli/config.rb, line 8 def set(key, value) config.instance_variable_set("@#{key}", value) config.save end
unset(key)
click to toggle source
# File lib/drive_env/cli/config.rb, line 14 def unset(key) config.remove_instance_variable("@#{key}") config.save end