Class: Memo::Cli::Command::Config
- Inherits:
-
Object
- Object
- Memo::Cli::Command::Config
- Defined in:
- lib/memo/cli/command/config.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(_, os: Memo::OS.new) ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 |
# File 'lib/memo/cli/command/config.rb', line 14 def call tomlfile = ENV["MEMO_CONFIG"] || "#{@config.root}/#{@file}" @os.exec "#{@config.editor} #{tomlfile}" end |