Class: Deplo::BranchNameForGithub

Inherits:
FromCommandLine
  • Object
show all
Defined in:
lib/deplo/github.rb

Instance Method Summary collapse

Constructor Details

#initialize ⇒ BranchNameForGithub

Returns a new instance of BranchNameForGithub.



3
4
5
# File 'lib/deplo/github.rb', line 3

def initialize
  super( title: "Git Branch" , message: "Please input name of branch" , content: "master" )
end

Instance Method Details

#set ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/deplo/github.rb', line 7

def set
  while !( @condition )
    if @content == "master"
      @condition = ::Deplo.yes_no( @condition , no: ::Proc.new { @content = nil } , message: "Use branch \'master\'" )
    else
      super
    end
  end
end