Class: Avm::Git::RevisionTest

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/revision_test.rb

Instance Method Summary collapse

Instance Method Details



13
14
15
16
17
18
# File 'lib/avm/git/revision_test.rb', line 13

def banner
  infov 'Revision to test', sha1
  ::EacRubyUtils::Speaker.context.on(::EacCli::Speaker.new(err_line_prefix: '  ')) do
    revision_banner
  end
end

#successful?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/avm/git/revision_test.rb', line 28

def successful?
  successful
end

#successful_labelObject



20
21
22
# File 'lib/avm/git/revision_test.rb', line 20

def successful_label
  successful?.to_s.send((successful? ? :green : :red))
end

#to_sObject



24
25
26
# File 'lib/avm/git/revision_test.rb', line 24

def to_s
  sha1
end