lib/pennyworth/cli.rb in pennyworth-2.3.0 vs lib/pennyworth/cli.rb in pennyworth-2.4.0
- old
+ new
@@ -70,10 +70,10 @@
end
desc "-e, [edit]", "Edit gem settings in default editor (assumes $EDITOR environment variable)."
map %w(-e --edit) => :edit
def edit
- `$EDITOR #{@settings_file}`
+ `#{editor} #{@settings_file}`
end
desc "-v, [--version]", "Show version."
map %w(-v --version) => :version
def version