Class: Gemsmith::Tools::Editor

Inherits:
Object
  • Object
show all
Defined in:
lib/gemsmith/tools/editor.rb

Overview

Edits a gem within default editor.

Instance Method Summary collapse

Instance Method Details

#call(specification) ⇒ Object



12
13
14
15
16
# 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