Class: PGit::Command::Edit

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pgit/command/edit.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Edit

Returns a new instance of Edit.



10
11
12
# File 'lib/pgit/command/edit.rb', line 10

def initialize(app)
  @app = app
end

Instance Method Details

#execute!Object



14
15
16
17
18
19
# File 'lib/pgit/command/edit.rb', line 14

def execute!
  check_command_exists_for_update

  command.save!
  display_success_msg
end