class Gemsmith::Tools::Editor

Edits a gem within default editor.

Public Instance Methods

call(specification) click to toggle source
# File lib/gemsmith/tools/editor.rb, line 12
def call specification
  executor.capture3(client, specification.source_path.to_s).then do |_stdout, stderr, status|
    status.success? ? Success(specification) : Failure(stderr)
  end
end

Private Instance Methods

client(= environment.fetch("EDITOR")) click to toggle source
# File lib/gemsmith/tools/editor.rb, line 20
  def client = environment.fetch("EDITOR")
end