class Deplo::TitleForGitCommit
Public Class Methods
new( gem_version: nil )
click to toggle source
Calls superclass method
Deplo::FromCommandLine::new
# File lib/deplo/git.rb, line 3 def initialize( gem_version: nil ) super( title: "Title for \'git commit\'" , message: "Please input title for commitment" ) @gem_version = gem_version @time_now = ::Time.now.strftime( "%Y%m%d_%H%M%S" ) end
Public Instance Methods
set()
click to toggle source
Calls superclass method
Deplo::FromCommandLine#set
# File lib/deplo/git.rb, line 9 def set if @gem_version.present? @content = "Install Gem (#{ @gem_version })" @condition = ::Deplo.yes_no( message: message_after_input_string ) # ( @condition ) super else super end end
Private Instance Methods
actual_content()
click to toggle source
# File lib/deplo/git.rb, line 21 def actual_content "#{ @time_now } #{ @content }" end